Skip to content

Commit

Permalink
Use force checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
another-rex committed Sep 9, 2024
1 parent b756d11 commit 5624e70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/osv-scanner-reusable-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ jobs:
--output=old-results.json
${{ inputs.scan-args }}
- name: "Checkout current branch"
run: git checkout $GITHUB_SHA
# Use -f in case any changes were made by osv-scanner (there should be no changes)
run: git checkout -f $GITHUB_SHA
- name: "Run scanner on new code"
uses: google/osv-scanner-action/osv-scanner-action@01ff5d1fb3f81ce02671051bcbef67347b5c6200 # v1.8.3
with:
Expand Down

0 comments on commit 5624e70

Please sign in to comment.