Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/malware-scan.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name: Malware scan

# Scans each pull request's added code for malware and supply-chain attack
Expand Down Expand Up @@ -62,7 +62,7 @@

- name: scan and report
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ secrets.CONTRIBUTORS_TOKEN || github.token }}

Check warning on line 65 in .github/workflows/malware-scan.yml

View workflow job for this annotation

GitHub Actions / Review & auto-merge

Malware scan: workflow-privilege

workflow gains privileges (repository secrets, a privileged trigger or write permissions)
REPO: ${{ github.repository }}
EVENT_PR: ${{ github.event.pull_request.number }}
INPUT_PR: ${{ inputs.pr }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/require-assignment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
runs-on: ubuntu-latest
timeout-minutes: 5
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.CONTRIBUTORS_TOKEN || secrets.GITHUB_TOKEN }}

Check warning on line 25 in .github/workflows/require-assignment.yml

View workflow job for this annotation

GitHub Actions / Review & auto-merge

Malware scan: workflow-privilege

workflow gains privileges (repository secrets, a privileged trigger or write permissions)
# PR-controlled fields are passed as env vars rather than interpolated
# directly into the script below. `${{ }}` substitution happens as a
# raw text splice into the YAML *before* bash ever sees it, so a body
Expand Down
Loading