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 5a96d20 commit d7f1596
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +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: {contents:read}
permissions: {contents: read}

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +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 d7f1596

Please sign in to comment.