Skip to content

Fix top level permissions in workflows #412

Fix top level permissions in workflows

Fix top level permissions in workflows #412

Workflow file for this run

name: Peer Image CI
on:
push:
branches:
- 'main'
tags:
- 'v*'
paths-ignore:
- '*.md'
- 'docs/**'
- 'samples/**'
pull_request:
branches:
- 'main'
paths-ignore:
- '*.md'
- 'docs/**'
- 'samples/**'
permissions: read-all
jobs:
docker_build:

Check failure on line 24 in .github/workflows/peer-image.yml

View workflow run for this annotation

GitHub Actions / Peer Image CI

Invalid workflow file

The workflow is not valid. .github/workflows/peer-image.yml (Line: 24, Col: 3): Error calling workflow 'hyperledger-labs/fabric-builder-k8s/.github/workflows/docker-build.yml@12abbba9eb3bb67f440821b042bfa99d90ecb2ba'. The nested job 'build' is requesting 'packages: write, id-token: write', but is only allowed 'packages: read, id-token: read'. .github/workflows/peer-image.yml (Line: 24, Col: 3): Error calling workflow 'hyperledger-labs/fabric-builder-k8s/.github/workflows/docker-build.yml@12abbba9eb3bb67f440821b042bfa99d90ecb2ba'. The nested job 'package' is requesting 'contents: write, packages: write, id-token: write', but is only allowed 'contents: read, packages: read, id-token: read'.
name: Docker build
uses: ./.github/workflows/docker-build.yml
with:
image-name: ghcr.io/hyperledger-labs/fabric-builder-k8s/k8s-fabric-peer
path: .