Skip to content

ci: run CodeQL only on master and PRs to master - #38

Merged
adamdecaf merged 3 commits into
masterfrom
ci/codeql-master-only
Aug 26, 2026
Merged

adamdecaf merged 3 commits into
masterfrom
ci/codeql-master-only

Conversation

@adamdecaf

Copy link
Copy Markdown
Member

Master CodeQL is already green. Failures like fincen#97964526027 happen when CodeQL analyzes a feature-branch push and then the branch is deleted (--delete-branch) before SARIF upload can attach to that ref:

ref 'refs/heads/ci/skip-codeql-without-ghas' not found in this repository

Limit CodeQL to master pushes, PRs targeting master, schedule, and workflow_dispatch.

Private repos without GitHub Advanced Security and archived repos
cannot process CodeQL SARIF uploads. Skip the job in those cases.
Keep a single updater. Renovate already automerges minor/patch/pin/digest
and is the ruleset bypass actor. Remove Dependabot version-update config
so those PRs stop duplicating and blocking.
Unrestricted push/pull_request triggers analyze deleted feature
branches and fail SARIF upload with "ref not found".
@adamdecaf
adamdecaf merged commit ed31d1e into master Aug 26, 2026
5 of 6 checks passed
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