Skip to content

Commit

Permalink
Do not run vulnerability scans on forks
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorwhitney committed Nov 15, 2023
1 parent d22c1fd commit e50360b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/vulnerability-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ on: pull_request

permissions:
pull-requests: write
contents: write
issues: write

jobs:
snyk:
name: Snyk Scan
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
if: ${{ !github.event.pull_request.head.repo.fork }}
steps:
- name: Checkout code
uses: actions/checkout@master
Expand Down Expand Up @@ -50,9 +48,7 @@ jobs:
trivy:
name: Trivy Scan
runs-on: ubuntu-20.04
permissions:
issues: write
pull-requests: write
if: ${{ !github.event.pull_request.head.repo.fork }}
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down

0 comments on commit e50360b

Please sign in to comment.