From 3f6f54a29acb81ef40cda932ce8cab686f744b77 Mon Sep 17 00:00:00 2001 From: Samuel Ojetunde Date: Tue, 27 Oct 2026 02:10:35 +0100 Subject: [PATCH] ci: post assignment and malware notes as the maintainer require-assignment.yml and malware-scan.yml used the default Actions token, so their comments appeared as github-actions. They now use CONTRIBUTORS_TOKEN when it is set, like the auto-merge bot. --- .github/workflows/malware-scan.yml | 2 +- .github/workflows/require-assignment.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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