diff --git a/.github/workflows/malware-scan.yml b/.github/workflows/malware-scan.yml index 498cc56..ef3d98b 100644 --- a/.github/workflows/malware-scan.yml +++ b/.github/workflows/malware-scan.yml @@ -62,7 +62,7 @@ jobs: - name: scan and report env: - GH_TOKEN: ${{ github.token }} + GH_TOKEN: ${{ secrets.CONTRIBUTORS_TOKEN || github.token }} REPO: ${{ github.repository }} EVENT_PR: ${{ github.event.pull_request.number }} INPUT_PR: ${{ inputs.pr }} diff --git a/.github/workflows/require-assignment.yml b/.github/workflows/require-assignment.yml index 8513b96..85bf081 100644 --- a/.github/workflows/require-assignment.yml +++ b/.github/workflows/require-assignment.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.CONTRIBUTORS_TOKEN || secrets.GITHUB_TOKEN }} # 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