Skip to content

Add CodeQL workflow to scan GitHub Actions#1176

Merged
pjbgf merged 2 commits into
mainfrom
actions-validation
May 11, 2026
Merged

Add CodeQL workflow to scan GitHub Actions#1176
pjbgf merged 2 commits into
mainfrom
actions-validation

Conversation

@pjbgf
Copy link
Copy Markdown
Member

@pjbgf pjbgf commented May 11, 2026

https://entire.io/gh/entireio/cli/trails/351

Runs CodeQL's actions language analysis with security-extended and security-and-quality query suites on PRs that touch workflow or action files, catching workflow injection and other supply-chain risks before merge.


Note

Low Risk
Low risk: adds a new CI workflow only, with minimal read permissions plus security-events: write to upload results.

Overview
Adds a new .github/workflows/codeql-actions.yml workflow that runs CodeQL analysis for the actions language on demand and on PRs that modify workflow/action files.

The job checks out the PR head SHA, runs the security-extended and security-and-quality query suites, and uploads findings to GitHub Security with scoped permissions.

Reviewed by Cursor Bugbot for commit 256a66f. Configure here.

Runs CodeQL's actions language analysis with security-extended and
security-and-quality query suites on PRs that touch workflow or action
files, catching workflow injection and other supply-chain risks before
merge.

Assisted-by: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: Paulo Gomes <paulo@entire.io>
Copilot AI review requested due to automatic review settings May 11, 2026 05:50
@pjbgf pjbgf requested a review from a team as a code owner May 11, 2026 05:50
@github-advanced-security
Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a dedicated CodeQL workflow to analyze GitHub Actions/workflow files when they are modified in pull requests, aiming to catch workflow-injection and other CI supply-chain risks prior to merge.

Changes:

  • Introduces a new .github/workflows/codeql-actions.yml workflow triggered on PRs that touch workflow/action definitions (and via manual dispatch).
  • Runs CodeQL “actions” language analysis with security-extended and security-and-quality query suites and uploads results to code scanning.

Comment thread .github/workflows/codeql-actions.yml
Fork PRs receive a read-only GITHUB_TOKEN, so the analyze step's upload
to the code-scanning API fails and turns the check red for external
contributors. Switch upload to never for fork PRs while still running
the analysis so findings appear in the job log.

Assisted-by: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: Paulo Gomes <paulo@entire.io>
Entire-Checkpoint: d86ffe2e995d
@pjbgf pjbgf enabled auto-merge May 11, 2026 08:38
@pjbgf pjbgf merged commit 7b3d323 into main May 11, 2026
11 checks passed
@pjbgf pjbgf deleted the actions-validation branch May 11, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants