Skip to content

Commit

Permalink
Merge pull request #118 from creative-commoners/pulls/1/workflow-perm…
Browse files Browse the repository at this point in the history
…issions

ENH Add workflow permissions
  • Loading branch information
GuySartorelli authored Apr 17, 2024
2 parents fc18202 + aa48c61 commit bb2c06b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/auto-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ on:
tags:
- '*.*.*'
workflow_dispatch:

permissions: {}

jobs:
auto-tag:
name: Auto-tag
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Auto-tag
uses: silverstripe/gha-auto-tag@v1
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ on:
default: false
description: Whether tests in the vendor folder should be preserved.

permissions: {}

jobs:

# Writes various github variables to the console for debugging purposes
Expand Down Expand Up @@ -981,6 +983,8 @@ jobs:
runs-on: ubuntu-latest
needs: gaugerelease
if: ${{ needs.gaugerelease.outputs.do_release == '1' }}
permissions:
contents: write
steps:
- name: Patch release
uses: silverstripe/gha-tag-release@v1
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: '0 0 5 * *'
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
5 changes: 5 additions & 0 deletions .github/workflows/merge-up.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@ on:
- cron: '0 0 * * 4'
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
steps:
- name: Merge-up
uses: silverstripe/gha-merge-up@v1

0 comments on commit bb2c06b

Please sign in to comment.