chore: update permissions for actions

This commit is contained in:
Jun Kurihara 2025-05-21 19:07:29 +09:00
commit e60e5f68a1
No known key found for this signature in database
GPG key ID: D992B3E3DE1DED23
5 changed files with 23 additions and 23 deletions

View file

@ -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