From 3db44837964b119cc488751611ac5afcff5632be Mon Sep 17 00:00:00 2001 From: jeffmur Date: Thu, 21 Dec 2023 14:24:29 -0800 Subject: [PATCH] Optionally use write permissions --- .github/workflows/deploy.yml | 5 ++++- .github/workflows/reuse-build-deploy.yml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5d999fe2..bf4b03e0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -5,10 +5,13 @@ on: branches: - 'hello-world' +permissions: + packages: write + jobs: build: name: Builder 👷 - uses: ./.github/workflows/reuse-build-deploy.yml@hello-world + uses: ./.github/workflows/reuse-build-deploy.yml test: name: Unit Tests 🧪 diff --git a/.github/workflows/reuse-build-deploy.yml b/.github/workflows/reuse-build-deploy.yml index ce36bbe9..e5c42100 100644 --- a/.github/workflows/reuse-build-deploy.yml +++ b/.github/workflows/reuse-build-deploy.yml @@ -18,7 +18,7 @@ on: permissions: contents: read - packages: write + packages: read # optionally, write jobs: build: