Skip to content

Commit

Permalink
Optionally use write permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffmur committed Dec 21, 2023
1 parent 826b22b commit 3db4483
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 🧪
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reuse-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:

permissions:
contents: read
packages: write
packages: read # optionally, write

jobs:
build:
Expand Down

0 comments on commit 3db4483

Please sign in to comment.