Skip to content

ci: run CodeQL Actions security scan on stacked and backport PRs - #222

Open
dborowitz wants to merge 1 commit into
dborowitz-fix-workflow-scanfrom
dborowitz-scan-stacked-prs
Open

dborowitz wants to merge 1 commit into
dborowitz-fix-workflow-scanfrom
dborowitz-scan-stacked-prs

Conversation

@dborowitz

Copy link
Copy Markdown
Contributor

Adds .github/workflows/action-security-scan.yaml. It runs the same 6-rule codeql/actions-queries suite as the Alphabet enterprise Google GitHub Admin: Actions Workflow Security Scan, on pull requests where github.base_ref != github.event.repository.default_branch.

Why

The enterprise scan only runs on PRs that target the default branch, or that belong to a native GitHub stack based on main. Two kinds of PR therefore went unscanned before merge:

This workflow covers exactly those cases. It needs no API calls, so it also catches a stacked PR on its first push.

Notes

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@dborowitz
dborowitz force-pushed the dborowitz-scan-stacked-prs branch from 38fdecd to 2f4b1bf Compare October 26, 2026 20:51
@dborowitz
dborowitz added this pull request to stack #223 October 26, 2026 20:58
@dborowitz
dborowitz force-pushed the dborowitz-scan-stacked-prs branch from 2f4b1bf to 9b147a8 Compare October 27, 2026 03:39
@dborowitz
dborowitz requested a review from tim-u October 27, 2026 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant