Skip to content

Commit

Permalink
Merge pull request #41 from google/force-checkout
Browse files Browse the repository at this point in the history
fix: Use force checkout on second checkout for PR scanning
  • Loading branch information
another-rex committed Sep 10, 2024
2 parents 75f230e + 5624e70 commit 6777cfa
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@fa6b69996424da9c1cebadc9bf67a02010433218 # v1.8.4
with:
Expand Down

0 comments on commit 6777cfa

Please sign in to comment.