Skip to content

Commit 26a58bc

Browse files
committed
Only upload CodeQL self-analysis results from the upstream repository
This fork has CodeQL default setup enabled, which rejects SARIF from advanced configurations, so the `analyze-javascript (ubuntu-24.04)` and `analyze-other` jobs failed at upload. Default setup already scans this repository, so keep running the analyses but only upload when running in github/codeql-action. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01A6REV1f9XMQdyBtTufzb8e
1 parent c8f0270 commit 26a58bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/codeql.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
uses: ./analyze
103103
with:
104104
category: "/language:javascript"
105-
upload: ${{ (matrix.os == 'ubuntu-24.04' && !matrix.tools && github.event_name != 'merge_group' && 'always' ) || 'never' }}
105+
upload: ${{ (github.repository == 'github/codeql-action' && matrix.os == 'ubuntu-24.04' && !matrix.tools && github.event_name != 'merge_group' && 'always' ) || 'never' }}
106106

107107
analyze-other:
108108
if: github.triggering_actor != 'dependabot[bot]'
@@ -136,4 +136,4 @@ jobs:
136136
uses: ./analyze
137137
with:
138138
category: "/language:${{ matrix.language }}"
139-
upload: ${{ (github.event_name != 'merge_group' && 'always') || 'never' }}
139+
upload: ${{ (github.repository == 'github/codeql-action' && github.event_name != 'merge_group' && 'always') || 'never' }}

0 commit comments

Comments
 (0)