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


Then enable read and write permission.







 


Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type