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: 549548061
  • Loading branch information
eustas authored and Copybara-Service committed Jul 24, 2023
1 parent 779a49b commit 91fb7ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/codeql.yml
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 91fb7ec

Please sign in to comment.