Skip to content

Commit b4a9a1c

Browse files
committed
ci: update workflow permissions
Signed-off-by: Matthew Penner <me@matthewp.io>
1 parent 7daaaaa commit b4a9a1c

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.github/workflows/docker.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
runs-on: ubuntu-22.04
1515
# Always run against a tag, even if the commit into the tag has [docker skip] within the commit message.
1616
if: "!contains(github.ref, 'develop') || (!contains(github.event.head_commit.message, 'skip docker') && !contains(github.event.head_commit.message, 'docker skip'))"
17+
permissions:
18+
contents: read
19+
packages: write
1720
steps:
1821
- name: Code checkout
1922
uses: actions/checkout@v4

.github/workflows/push.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
build-and-test:
1313
name: Build and Test
1414
runs-on: ${{ matrix.os }}
15+
permissions:
16+
contents: read
1517
strategy:
1618
fail-fast: false
1719
matrix:

.github/workflows/release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
release:
1010
name: Release
1111
runs-on: ubuntu-22.04
12+
permissions:
13+
contents: write # write is required to create releases and push.
1214

1315
steps:
1416
- name: Code Checkout

0 commit comments

Comments
 (0)