There's no reason to believe this script is actually vulnerable but
now it's best practice to avoid using pull_request_target.
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
---
name: "Check for missing .qa links"
on:
- pull_request_target:
+ pull_request:
types:
- opened
- synchronize
- edited
- reopened
-
+permissions:
+ contents: read
jobs:
- pull_request:
+ check-qa-links:
name: "Check for missing .qa links"
runs-on: ubuntu-latest
if: github.repository == 'ceph/ceph'
ref: 'refs/heads/main'
path: main
- - name: checkout PR HEAD
+ - name: Checkout PR HEAD
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ github.event.pull_request.head.sha }}