Skip to content

Commit

Permalink
Update critical_vulnerability_scan.yml
Browse files Browse the repository at this point in the history
Change trigger from pull_request_target to pull_request, as the former uses the base branch instead of the PR source code.
This allows simplification of the checkout action (also took the opportunity to bump from v2 to v4).
  • Loading branch information
jsvd authored Mar 28, 2024
1 parent e429795 commit 5ad4263
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/critical_vulnerability_scan.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Scan for vulnerabilities

on:
pull_request_target:
pull_request:
types: [opened, synchronize]
workflow_dispatch:

Expand All @@ -10,10 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
uses: actions/checkout@v4
- name: build tar distribution
run: ./gradlew clean assembleTarDistribution
- run: mkdir scan
Expand Down

0 comments on commit 5ad4263

Please sign in to comment.