-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up CodeQL for scanning GitHub Actions (#349)
Update the CI configuration to add CodeQL to scan the GitHub Actions setup of this project. Note: per the code scanning docs, only "GitHub Actions workflows" are supported. Hence, the workflow is not configured to trigger for changes to `action.yml` manifest files.
- Loading branch information
1 parent
d7ee394
commit 71e8da5
Showing
4 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Check out CodeQL at: https://codeql.github.com/ | ||
|
||
name: tool-versions-update-action CodeQL config | ||
|
||
queries: | ||
- uses: security-extended |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: CodeQL | ||
on: | ||
pull_request: | ||
paths: | ||
- .github/workflows/* | ||
- .github/codeql.yml | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
codeql: | ||
name: actions | ||
runs-on: ubuntu-24.04 | ||
permissions: | ||
security-events: write # To upload CodeQL results | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | ||
with: | ||
persist-credentials: false | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@d68b2d4edb4189fd2a5366ac14e72027bd4b37dd # v3.28.2 | ||
with: | ||
config-file: ./.github/codeql.yml | ||
languages: actions | ||
- name: Perform CodeQL analysis | ||
uses: github/codeql-action/analyze@d68b2d4edb4189fd2a5366ac14e72027bd4b37dd # v3.28.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters