Skip to content

Commit

Permalink
Cleaner workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkarns committed Jun 2, 2024
1 parent a196003 commit 5a96d20
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/definitions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ on:
schedule: [{cron: '0 */6 * * *'}] # 6hrly https://crontab.guru/#0_*/6_*_*_*
workflow_dispatch:

permissions:
contents: read
permissions: {contents: read}

jobs:
scrape:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Release
on:
push: { tags: 'v[0-9]+.[0-9]+.[0-9]+*' }

permissions:
contents: read
permissions: {contents:read}

jobs:
release:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-default-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push: { branches: main }
workflow_dispatch:

permissions: { contents: write }
permissions: {contents:write}

jobs:
sync:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
schedule: [{cron: '0 0 10 * *'}] # monthly https://crontab.guru/#0_0_10_*_*
workflow_dispatch:

permissions: read-all
permissions: {contents:read}

jobs:
test:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ on:
schedule: [{ cron: '0 10 * * *' }] # daily: https://crontab.guru/#0_10_*_*_*
workflow_dispatch:

permissions:
contents: read
permissions: {contents:read}

jobs:
bump:
Expand Down

0 comments on commit 5a96d20

Please sign in to comment.