Skip to content

Commit

Permalink
Workaround for GitHub / CodeQL bug
Browse files Browse the repository at this point in the history
Sometimes GitHub Actions uses bare branch name whereas CodeQL always expects ref.
See github/codeql-action#796

PiperOrigin-RevId: 550504283
  • Loading branch information
eustas authored and copybara-github committed Jul 24, 2023
1 parent 779a49b commit dbfebd1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,5 @@ jobs:
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
ref: "${{ github.ref != 'master' && github.ref || '/refs/heads/master' }}"
sha: "${{ github.sha }}"

0 comments on commit dbfebd1

Please sign in to comment.