Skip to content

Commit ab83175

Browse files
committed
ci: clean up agent-scan workflow
1 parent ece4e07 commit ab83175

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

.github/workflows/agent-scan.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,22 @@ jobs:
1818
agentscan:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
22-
- name: Cache AgentScan analysis
23-
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7
24-
with:
25-
path: .agentscan-cache
26-
key: agentscan-cache-${{ github.actor }}
27-
restore-keys: agentscan-cache-
2821
- name: AgentScan
2922
id: agentscan
3023
uses: MatteoGabriele/agentscan-action@a584774dd15cabe6df4c6ab45fc43514a3b56b2d
3124
with:
3225
github-token: ${{ secrets.GITHUB_TOKEN }}
3326
skip-members: "dependabot[bot],renovate[bot]"
3427
agent-scan-comment: false
35-
cache-path: .agentscan-cache
3628
- name: Label flagged PR
3729
if: contains(fromJSON('["automation","suspicious"]'), steps.agentscan.outputs.classification) && !contains(steps.agentscan.outputs.community-flagged, 'true')
38-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
30+
env:
31+
CLASSIFICATION: ${{ steps.agentscan.outputs.classification }}
32+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
3933
with:
4034
script: |
4135
const prNumber = context.payload.pull_request.number;
42-
const classification = '${{ steps.agentscan.outputs.classification }}';
36+
const classification = process.env.CLASSIFICATION;
4337
4438
const issue = context.payload.pull_request
4539
const labels = issue.labels?.map(l => l.name) || []

0 commit comments

Comments
 (0)