Uh oh!
There was an error while loading. Please reload this page.
CI: Add CodeQL workflow for GitHub Actions security scanning - #1408
Conversation
kosiew
left a comment
There was a problem hiding this comment.
Thanks for working on this.
Uh oh!
There was an error while loading. Please reload this page.
| permissions: | ||
| contents: read |
There was a problem hiding this comment.
contents: read is declared both globally and on the job. Could this live in one place to keep the permission model easier to scan?
There was a problem hiding this comment.
i like the approach of keeping this declare at the top-level as any future jobs added will have read permissions by default.
jobs can be explicit and specify more permissions, as shown in analyze:
Uh oh!
There was an error while loading. Please reload this page.
kosiew
commented
Mar 31, 2026
Merging as this a straightforward improvement PR |
Uh oh!
There was an error while loading. Please reload this page.
This adds a CodeQL workflow to scan GitHub Actions workflow files for security issues such as script injection, use of untrusted input, and other misconfigurations.
Reference: https://github.blog/security/application-security/how-to-secure-your-github-actions-workflows-with-codeql/
Triggers:
mainThis is based on Apache Infra recommendation,
This PR was generated by https://gist.github.com/kevinjqliu/97d24733c7b75cd92b68bf8f5b247891