chore: update permissions for actions
This commit is contained in:
parent
886aa74d6c
commit
e60e5f68a1
5 changed files with 23 additions and 23 deletions
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
|
|
@ -14,6 +14,10 @@ on:
|
|||
|
||||
jobs:
|
||||
on-success:
|
||||
permissions:
|
||||
contents: read
|
||||
packages: read
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' }} || ${{ github.event_name == 'repositry_dispatch' }}
|
||||
strategy:
|
||||
|
|
@ -98,12 +102,18 @@ jobs:
|
|||
path: "/tmp/${{ steps.set-env.outputs.target_name }}"
|
||||
|
||||
on-failure:
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'failure' }}
|
||||
steps:
|
||||
- run: echo 'The release triggering workflows failed'
|
||||
|
||||
release:
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event_name == 'repository_dispatch' }}
|
||||
needs: on-success
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue