Skip to content

Commit

Permalink
Merge pull request #2625 from Hannah-Sten/codeql-master
Browse files Browse the repository at this point in the history
Workaround for bug in codeql-action
  • Loading branch information
PHPirates authored Aug 21, 2022
2 parents 73563f0 + 76af074 commit 07cfee6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
# Workaround for https://github.com/github/codeql-action/issues/796
# This will prepend refs/heads/ if the branch name does not start with refs/
- name: Update GITHUB_REF
id: update-github-ref
run: echo ::set-output name=fixed_github_ref::$([[ "$GITHUB_REF" =~ refs\/(heads|pull|tags)\/.* ]] && echo $GITHUB_REF || echo "refs/heads/$GITHUB_REF")
- name: Qodana
uses: JetBrains/qodana-action@v2022.2.1
# https://www.jetbrains.com/help/qodana/github.html#GitHub+code+scanning
Expand All @@ -24,6 +29,8 @@ jobs:
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json
ref: ${{ steps.update-github-ref.outputs.fixed_github_ref }}
sha: ${{ github.sha }}
test:
runs-on: ${{ matrix.os }}
strategy:
Expand Down

0 comments on commit 07cfee6

Please sign in to comment.