Skip to content

Commit 41677d1

Browse files
authored
Merge pull request #396 from crazy-max/release-fix-perms
allow release workflows to create GitHub releases
2 parents caa40a9 + 8fe2e04 commit 41677d1

17 files changed

Lines changed: 34 additions & 0 deletions

.github/workflows/build-agent.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,7 @@ on:
3232
jobs:
3333
run:
3434
uses: ./.github/workflows/.build.yml
35+
permissions:
36+
contents: read
3537
with:
3638
name: agent

.github/workflows/build-buildx.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,7 @@ on:
3232
jobs:
3333
run:
3434
uses: ./.github/workflows/.build.yml
35+
permissions:
36+
contents: read
3537
with:
3638
name: buildx

.github/workflows/build-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,7 @@ on:
3232
jobs:
3333
run:
3434
uses: ./.github/workflows/.build.yml
35+
permissions:
36+
contents: read
3537
with:
3638
name: compose

.github/workflows/build-containerd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,7 @@ on:
3232
jobs:
3333
run:
3434
uses: ./.github/workflows/.build.yml
35+
permissions:
36+
contents: read
3537
with:
3638
name: containerd

.github/workflows/build-credential-helpers.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,7 @@ on:
3232
jobs:
3333
run:
3434
uses: ./.github/workflows/.build.yml
35+
permissions:
36+
contents: read
3537
with:
3638
name: credential-helpers

.github/workflows/build-docker-cli.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,7 @@ on:
3232
jobs:
3333
run:
3434
uses: ./.github/workflows/.build.yml
35+
permissions:
36+
contents: read
3537
with:
3638
name: docker-cli

.github/workflows/build-docker-engine.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,7 @@ on:
3232
jobs:
3333
run:
3434
uses: ./.github/workflows/.build.yml
35+
permissions:
36+
contents: read
3537
with:
3638
name: docker-engine

.github/workflows/build-model.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,7 @@ on:
3232
jobs:
3333
run:
3434
uses: ./.github/workflows/.build.yml
35+
permissions:
36+
contents: read
3537
with:
3638
name: model

.github/workflows/nightly.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919

2020
build:
2121
uses: ./.github/workflows/.build.yml
22+
permissions:
23+
contents: read
2224
needs:
2325
- pkgs
2426
strategy:

.github/workflows/release-agent.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ on:
4444
jobs:
4545
release:
4646
uses: ./.github/workflows/.build.yml
47+
permissions:
48+
contents: write # needed to create release and upload artifacts
4749
with:
4850
name: agent
4951
release: ${{ inputs.release }}

0 commit comments

Comments
 (0)