ci(codeql): enable for github actions#448
Conversation
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
185efd9 to
7765f72
Compare
7765f72 to
37a7a44
Compare
|
There was a problem hiding this comment.
Pull Request Overview
This PR updates multiple GitHub Actions workflow files to explicitly set permissions and expand event-type configurations, in order to comply with CodeQL scanning requirements and recent best practices.
- Explicitly set permissions (e.g. contents: read or empty permissions) in all workflow files
- Expand inline arrays for event types (release, issues, etc.)
- Refactor conditional expressions and rename some job steps to improve clarity
Reviewed Changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/update-docs.yml | Added explicit permissions and expanded release event types |
| .github/workflows/update-changelog.yml | Added permissions, updated event types, and renamed job for clarity |
| .github/workflows/social-post.yml | Adjusted conditional expressions in if clauses |
| .github/workflows/renovate-config-validator.yml | Updated branch and types syntax with explicit permissions |
| .github/workflows/release-notifier.yml | Added permissions and refined conditional expressions |
| .github/workflows/patch_missing_releases.yml | Added permissions configuration |
| .github/workflows/issues.yml | Added explicit permissions and expanded issue event types |
| .github/workflows/issues-stale.yml | Added permissions, updated job naming, and refined conditions |
| .github/workflows/global-replicator.yml | Added permissions and adjusted branch filtering |
| .github/workflows/common-lint.yml | Added explicit permissions and simplified a log step |
| .github/workflows/codeql.yml | Added permissions, refined branch filters, and updated matrix generation |
| .github/workflows/cla-gist-replicator.yml | Added permissions and adjusted branch filtering |
| .github/workflows/ci-docker.yml | Added permissions, refined trigger conditions, and updated job structure |
Comments suppressed due to low confidence (1)
.github/workflows/ci-docker.yml:130
- [nitpick] Consider adding a separator between 'Docker' and the tag value (e.g. 'Docker - ${{ matrix.tag }}') for improved readability.
name: Docker${{ matrix.tag }}



Description
Add "actions" for CodeQL scanning.
Note: CodeQL flagged every workflow for not having "permissions" set explicitly. Hopefully none of the workflows break with what I have set, but might have a few surprises after the PRs are created in each repo.
Screenshot
Issues Fixed or Closed
Type of Change
.github/...)Checklist