From 83032da6bdddd04a82def2c7af70c027c94e60c5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 16 Jan 2026 16:54:40 +0000 Subject: [PATCH 1/2] Initial plan From cef2a0b27c589e5451e4f7abd76e3ade92af49bb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 16 Jan 2026 16:57:57 +0000 Subject: [PATCH 2/2] Add roles: all to issue-triage workflow to allow all users to trigger it Co-authored-by: friggeri <106686+friggeri@users.noreply.github.com> --- .github/workflows/issue-triage.lock.yml | 24 ------------------------ .github/workflows/issue-triage.md | 1 + 2 files changed, 1 insertion(+), 24 deletions(-) diff --git a/.github/workflows/issue-triage.lock.yml b/.github/workflows/issue-triage.lock.yml index 7615a27..fa962b0 100644 --- a/.github/workflows/issue-triage.lock.yml +++ b/.github/workflows/issue-triage.lock.yml @@ -45,8 +45,6 @@ run-name: "Issue Triage Agent" jobs: activation: - needs: pre_activation - if: needs.pre_activation.outputs.activated == 'true' runs-on: ubuntu-slim permissions: contents: read @@ -1113,28 +1111,6 @@ jobs: path: /tmp/gh-aw/threat-detection/detection.log if-no-files-found: ignore - pre_activation: - runs-on: ubuntu-slim - outputs: - activated: ${{ steps.check_membership.outputs.is_team_member == 'true' }} - steps: - - name: Setup Scripts - uses: githubnext/gh-aw/actions/setup@v0.36.0 - with: - destination: /opt/gh-aw/actions - - name: Check team membership for workflow - id: check_membership - uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 - env: - GH_AW_REQUIRED_ROLES: admin,maintainer,write - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const { setupGlobals } = require('/opt/gh-aw/actions/setup_globals.cjs'); - setupGlobals(core, github, context, exec, io); - const { main } = require('/opt/gh-aw/actions/check_membership.cjs'); - await main(); - safe_outputs: needs: - agent diff --git a/.github/workflows/issue-triage.md b/.github/workflows/issue-triage.md index 98bd6a6..711d9bd 100644 --- a/.github/workflows/issue-triage.md +++ b/.github/workflows/issue-triage.md @@ -9,6 +9,7 @@ on: description: "Issue number to triage" required: true type: string +roles: all permissions: contents: read issues: read