Skip to content

Commit f2c327a

Browse files
Update GitHub Actions token reference in workflow
1 parent 240c9fa commit f2c327a

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/deleteold.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,17 @@ name: Clean Workflow Logs
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: '0 1 * * *' # every night at 2 am UTC
5+
- cron: '0 1 * * *' # every night at 2 am UTC
6+
7+
permissions:
8+
actions: write
9+
contents: read
10+
611
jobs:
712
clean-logs:
813
runs-on: ubuntu-latest
914
steps:
1015
- uses: igorjs/gh-actions-clean-workflow@v7
1116
with:
12-
token: ${{ secrets.GITHUB_TOKEN }}
17+
token: ${{ github.token }}
1318
days_old: 90

0 commit comments

Comments
 (0)