Skip to content

Commit

Permalink
Fixes #21 (#22)
Browse files Browse the repository at this point in the history
* Fixes #21

* Add actions read permission to unified workflow

* PR feedback. Added link to codeql-action issue
  • Loading branch information
paul-doherty authored May 28, 2024
1 parent 8d8993e commit 37531d8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/osv-scanner-reusable-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
name: "OSV-Scanner PR Scanning"

permissions:
# Required to upload SARIF file to CodeQL. See: https://github.com/github/codeql-action/issues/2117
actions: read
contents: read
security-events: write

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/osv-scanner-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
name: OSV-Scanner single vulnerability scan

permissions:
# Required to upload SARIF file to CodeQL. See: https://github.com/github/codeql-action/issues/2117
actions: read
contents: read
security-events: write

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/osv-scanner-unified-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ on:
branches: ["main"]

permissions:
# Required to upload SARIF file to CodeQL. See: https://github.com/github/codeql-action/issues/2117
actions: read
# Require writing security events to upload SARIF file to security tab
security-events: write
# Read commit contents
Expand Down

0 comments on commit 37531d8

Please sign in to comment.