Skip to content

Commit a282158

Browse files
committed
Merge branch 'main' into cklin/diff-range-filtering
2 parents 94b5d39 + 9f93f47 commit a282158

File tree

776 files changed

+10835
-5538
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

776 files changed

+10835
-5538
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 'Publish Immutable Action Version'
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
id-token: write
13+
packages: write
14+
15+
steps:
16+
- name: Check release name
17+
id: check
18+
env:
19+
RELEASE_NAME: ${{ github.event.release.name }}
20+
run: |
21+
echo "Release name: ${{ github.event.release.name }}"
22+
if [[ $RELEASE_NAME == v* ]]; then
23+
echo "This is a CodeQL Action release. Create an Immutable Action"
24+
echo "is-action-release=true" >> $GITHUB_OUTPUT
25+
else
26+
echo "This is a CodeQL Bundle release. Do not create an Immutable Action"
27+
echo "is-action-release=false" >> $GITHUB_OUTPUT
28+
fi
29+
- name: Checking out
30+
if: steps.check.outputs.is-action-release == 'true'
31+
uses: actions/checkout@v4
32+
- name: Publish
33+
if: steps.check.outputs.is-action-release == 'true'
34+
id: publish
35+
uses: actions/[email protected]

.github/workflows/script/update-required-checks.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ fi
2727

2828
echo "Getting checks for $GITHUB_SHA"
2929

30-
# Ignore any checks with "https://", CodeQL, LGTM, and Update checks.
31-
CHECKS="$(gh api repos/github/codeql-action/commits/"${GITHUB_SHA}"/check-runs --paginate | jq --slurp --compact-output --raw-output '[.[].check_runs.[] | select(.conclusion != "skipped") | .name | select(contains("https://") or . == "CodeQL" or . == "Dependabot" or . == "check-expected-release-files" or contains("Update") or contains("update") or contains("test-setup-python-scripts") | not)] | unique | sort')"
30+
# Ignore any checks with "https://", CodeQL, LGTM, Update, and ESLint checks.
31+
CHECKS="$(gh api repos/github/codeql-action/commits/"${GITHUB_SHA}"/check-runs --paginate | jq --slurp --compact-output --raw-output '[.[].check_runs.[] | select(.conclusion != "skipped") | .name | select(contains("https://") or . == "CodeQL" or . == "Dependabot" or . == "check-expected-release-files" or contains("Update") or contains("ESLint") or contains("update") or contains("test-setup-python-scripts") | not)] | unique | sort')"
3232

3333
echo "$CHECKS" | jq
3434

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ Note that the only difference between `v2` and `v3` of the CodeQL Action is the
66

77
## [UNRELEASED]
88

9+
No user facing changes.
10+
11+
## 3.27.0 - 22 Oct 2024
12+
913
- Bump the minimum CodeQL bundle version to 2.14.6. [#2549](https://github.com/github/codeql-action/pull/2549)
1014
- Fix an issue where the `upload-sarif` Action would fail with "upload-sarif post-action step failed: Input required and not supplied: token" when called in a composite Action that had a different set of inputs to the ones expected by the `upload-sarif` Action. [#2557](https://github.com/github/codeql-action/pull/2557)
15+
- Update default CodeQL bundle version to 2.19.2. [#2552](https://github.com/github/codeql-action/pull/2552)
1116

1217
## 3.26.13 - 14 Oct 2024
1318

action.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: 'CodeQL: Stub'
2+
description: "Stub: Don't use this action directly. Read [the documentation](https://docs.github.com/en/code-security/code-scanning/introduction-to-code-scanning/about-code-scanning-with-codeql) instead."
3+
author: 'GitHub'
4+
runs:
5+
using: 'composite'
6+
steps:
7+
- name: 'Stub'
8+
run: |
9+
echo 'This is a stub. Read [the documentation](https://docs.github.com/en/code-security/code-scanning/introduction-to-code-scanning/about-code-scanning-with-codeql) instead.'
10+
exit 1
11+
shell: bash

init/action.yml

+4
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ inputs:
136136
description: >-
137137
Explicitly enable or disable TRAP caching rather than respecting the feature flag for it.
138138
required: false
139+
dependency-caching:
140+
description: >-
141+
Explicitly enable or disable caching of project build dependencies.
142+
required: false
139143
outputs:
140144
codeql-path:
141145
description: The path of the CodeQL binary used for analysis

lib/actions-util.js

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)