From e7814f4e16b6f9ba4f38415ce1236e286d9020ac Mon Sep 17 00:00:00 2001 From: Pehesi97 Date: Wed, 25 Oct 2023 10:05:25 -0300 Subject: [PATCH] fix: add initium-cli workflow permissions to write packages --- assets/github/onbranch.tmpl | 4 ++++ assets/github/onmain.tmpl | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/assets/github/onbranch.tmpl b/assets/github/onbranch.tmpl index 4bc252a1..04ee6803 100644 --- a/assets/github/onbranch.tmpl +++ b/assets/github/onbranch.tmpl @@ -5,6 +5,10 @@ on: pull_request: types: [opened, synchronize, reopened, closed] +permissions: + contents: read + packages: write + jobs: on_pr: if: github.event.action != 'closed' diff --git a/assets/github/onmain.tmpl b/assets/github/onmain.tmpl index 9776cbb9..d747c88d 100644 --- a/assets/github/onmain.tmpl +++ b/assets/github/onmain.tmpl @@ -6,6 +6,10 @@ on: branches: - {{ .DefaultBranch }} +permissions: + contents: read + packages: write + jobs: cli: runs-on: ubuntu-latest