Workaround for GitHub / CodeQL bug

Sometimes GitHub Actions uses bare branch name whereas CodeQL always expects ref.
See https://github.com/github/codeql-action/issues/796

PiperOrigin-RevId: 550504283
This commit is contained in:
Evgenii Kliuchnikov 2023-07-24 03:29:35 -07:00 committed by Copybara-Service
parent 779a49bfd6
commit dbfebd13dc

View File

@ -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 }}"