From 7bb5c6e6ed0df511a02cea9632619e14e8a0c107 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Sat, 16 May 2026 12:04:21 +0200 Subject: [PATCH 1/2] meta: add AgentScan workflow Signed-off-by: Matteo Collina Signed-off-by: Matteo Collina --- .github/workflows/agentscan.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/agentscan.yml diff --git a/.github/workflows/agentscan.yml b/.github/workflows/agentscan.yml new file mode 100644 index 000000000000..81816c2dfa29 --- /dev/null +++ b/.github/workflows/agentscan.yml @@ -0,0 +1,22 @@ +name: AgentScan + +on: + pull_request_target: + types: [opened] + +permissions: + contents: read + +jobs: + agentscan: + runs-on: ubuntu-slim + permissions: + pull-requests: write + issues: write + contents: read + steps: + - name: AgentScan + uses: MatteoGabriele/agentscan-action@6053584f80580b30ac2d32c87873ac0d67fd947a # v1.0.1 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + agent-scan-comment: false From c75e597381f819841d7a28dd13d01daf52001a8b Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Fri, 18 Sep 2026 13:45:58 +0200 Subject: [PATCH 2/2] meta: skip AgentScan for trusted author associations Bump agentscan-action to v2.5.0 so that trusted-author-associations is available, and skip scanning members, owners and collaborators. The v1 agent-scan-comment input is replaced by mode: labels. Signed-off-by: Matteo Collina --- .github/workflows/agentscan.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/agentscan.yml b/.github/workflows/agentscan.yml index 81816c2dfa29..fe0534bfab03 100644 --- a/.github/workflows/agentscan.yml +++ b/.github/workflows/agentscan.yml @@ -16,7 +16,8 @@ jobs: contents: read steps: - name: AgentScan - uses: MatteoGabriele/agentscan-action@6053584f80580b30ac2d32c87873ac0d67fd947a # v1.0.1 + uses: MatteoGabriele/agentscan-action@8112fb79b33fafb8506159df20129a34209ac410 # v2.5.0 with: github-token: ${{ secrets.GITHUB_TOKEN }} - agent-scan-comment: false + trusted-author-associations: member,owner,collaborator + mode: labels