From dbfebd13dcf51e1360f4f943306282b396a3e8cd Mon Sep 17 00:00:00 2001 From: Evgenii Kliuchnikov Date: Mon, 24 Jul 2023 03:29:35 -0700 Subject: 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 --- .github/workflows/codeql.yml | 2 ++ 1 file changed, 2 insertions(+) (limited to '.github') diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index fad20e2..e00adf7 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -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 }}" -- cgit v1.1