Skip to content

Commit

Permalink
ENH Add workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Apr 16, 2024
1 parent 72371d7 commit aa1351b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/dispatch-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@ on:
schedule:
- cron: '20 11 * * 2,3'

permissions: {}

jobs:
dispatch-ci:
name: Dispatch CI
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
permissions:
contents: read
actions: write
steps:
- name: Dispatch CI
uses: silverstripe/gha-dispatch-ci@v1
4 changes: 4 additions & 0 deletions .github/workflows/keepalive.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ on:
- cron: '30 6 11 * *'
workflow_dispatch:

permissions: {}

jobs:
keepalive:
name: Keepalive
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- name: Keepalive
uses: silverstripe/gha-keepalive@v1
6 changes: 6 additions & 0 deletions .github/workflows/merge-up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ on:
- cron: '20 11 * * 6'
workflow_dispatch:

permissions: {}

jobs:
merge-up:
name: Merge-up
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
permissions:
contents: write
actions: write
pull-requests: write
steps:
- name: Merge-up
uses: silverstripe/gha-merge-up@v1
2 changes: 2 additions & 0 deletions .github/workflows/update-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
schedule:
- cron: '30 6 1 */3 *'

permissions: {}

jobs:
update-js:
name: Update JS
Expand Down

0 comments on commit aa1351b

Please sign in to comment.