Skip to content

Commit 2fb8566

Browse files
Merge pull request cli#13474 from cli/wm-no-more-automation-token
Remove dependency on persistent token
2 parents dc246cd + 57480dd commit 2fb8566

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/detect-spam.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,19 @@ on:
44
types: [opened]
55

66
permissions:
7-
contents: none
8-
issues: write
9-
models: read
7+
contents: read # check out the repo to run the spam-detection scripts.
8+
issues: write # read issue contents (gh issue view), comment, label, and close issues detected as spam.
9+
models: read # run inference via `gh models run` for spam classification.
1010

1111
jobs:
1212
issue-spam:
1313
runs-on: ubuntu-latest
14-
environment: cli-automation
1514
steps:
1615
- name: Checkout repository
1716
uses: actions/checkout@v6
1817
- name: Run spam detection
1918
env:
20-
GH_TOKEN: ${{ secrets.AUTOMATION_TOKEN }}
19+
GH_TOKEN: ${{ github.token }}
2120
ISSUE_URL: ${{ github.event.issue.html_url }}
2221
run: |
2322
./.github/workflows/scripts/spam-detection/process-issue.sh "$ISSUE_URL"

0 commit comments

Comments
 (0)