github actions :- The nested job 'plan' is requesting 'actions: write, attestations: write, checks: write, contents: write, deployments: write, discussions: write, issues: write, packages: write, pages: write, pull-requests: write, repository-projects: write, statuses: write, security-events: write, id-token: write', but is only allowed 'actions
Bump into this error here:-
The workflow is not valid. .github/workflows/infra.yaml (Line: 10, Col: 3): Error calling workflow '/devops-templates/.github/workflows/terraform-environment.yaml@main'. The nested job 'plan' is requesting 'actions: write, attestations: write, checks: write, contents: write, deployments: write, discussions: write, issues: write, packages: write, pages: write, pull-requests: write, repository-projects: write, statuses: write, security-events: write, id-token: write', but is only allowed 'actions
To resolve this, we need to ensure we provide proper workflow permission to our github repository - actions.
Goto your repository, settings as shown here
Comments