Skip to content

Commit

Permalink
ci: Have coverity workflow run against PR code
Browse files Browse the repository at this point in the history
Checkout the head of the pull request code instead of the
target branch, this is needed when using `pull_request_target`
workflow.
  • Loading branch information
justin-stephenson committed Feb 12, 2025
1 parent c6294f5 commit 3ab7f85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false

- name: Install dependencies
uses: ./.github/actions/install-dependencies
Expand Down

0 comments on commit 3ab7f85

Please sign in to comment.