Skip to content

Commit

Permalink
Merge pull request #224 from creative-commoners/pulls/master/workflow…
Browse files Browse the repository at this point in the history
…-permissions

ENH Add workflow permissions
  • Loading branch information
GuySartorelli authored Apr 17, 2024
2 parents b616b30 + d89afb0 commit 8ff04cd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/js-prs-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ on:
- cron: '0 12 1 */3 *'
workflow_dispatch:

permissions: {}

jobs:
js-prs-issue:
name: JS PRs issue
# 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:
issues: write
steps:
- name: Get Alerts List
id: get-alerts-list
Expand Down
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: '50 10 4 * *'
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
4 changes: 4 additions & 0 deletions .github/workflows/translation-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ on:
- cron: '0 7 1 2,5,8,11 *'
workflow_dispatch:

permissions: {}

jobs:
translation-issue:
name: Translation issue
# 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:
issues: write
steps:
- name: Translation issue
uses: silverstripe/gha-issue@v1
Expand Down

0 comments on commit 8ff04cd

Please sign in to comment.