Update critical_vulnerability_scan.yml (#16039)

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).
This commit is contained in:
João Duarte 2024-03-28 15:03:07 +00:00 committed by GitHub
parent a7779664af
commit f6940f5a34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,7 @@
name: Scan for vulnerabilities
on:
pull_request_target:
pull_request:
types: [opened, synchronize]
workflow_dispatch:
@ -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