Skip to content

Commit

Permalink
Fix top level permissions in workflows again
Browse files Browse the repository at this point in the history
Another attempt to get the permissions right!

Signed-off-by: James Taylor <jamest@uk.ibm.com>
  • Loading branch information
jt-nti committed Feb 7, 2025
1 parent 17198e9 commit a44d82f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ on:
required: false
type: string

permissions:
contents: write
packages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/go-contract-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ on:
paths:
- 'samples/go-contract/**'

permissions: read-all

jobs:
docker_build:
name: Docker build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/java-contract-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ on:
paths:
- 'samples/java-contract/**'

permissions: read-all

jobs:
docker_build:
name: Docker build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/node-contract-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ on:
paths:
- 'samples/node-contract/**'

permissions: read-all

jobs:
docker_build:
name: Docker build
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/peer-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ permissions: read-all
jobs:
docker_build:
name: Docker build
permissions:
contents: write
packages: write
id-token: write
uses: ./.github/workflows/docker-build.yml
with:
image-name: ghcr.io/hyperledger-labs/fabric-builder-k8s/k8s-fabric-peer
Expand Down

0 comments on commit a44d82f

Please sign in to comment.