Skip to content

ci: skip CodeQL when GitHub cannot accept SARIF - #131

Merged
adamdecaf merged 1 commit into
masterfrom
ci/skip-codeql-without-ghas
Aug 25, 2026
Merged

ci: skip CodeQL when GitHub cannot accept SARIF#131
adamdecaf merged 1 commit into
masterfrom
ci/skip-codeql-without-ghas

Conversation

@adamdecaf

Copy link
Copy Markdown
Member

GitHub only accepts CodeQL SARIF uploads on public (non-archived) repositories, or private repositories with GitHub Advanced Security.

This skips the CodeQL job when repository.private or repository.archived is set, so CI does not fail on upload with "Advanced Security must be enabled" / "Code scanning is not enabled".

Private repos without GitHub Advanced Security and archived repos
cannot process CodeQL SARIF uploads. Skip the job in those cases.
@adamdecaf
adamdecaf merged commit f612012 into master Aug 25, 2026
6 of 7 checks passed
@adamdecaf
adamdecaf deleted the ci/skip-codeql-without-ghas branch August 25, 2026 20:57
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