Files
languageservices/actions-workflow-parser/testdata/reader/errors-reusable-workflow-job-nested-permissions-not-allowed-workflow-level-from-caller-workflow-level.yml
T
2023-01-06 15:54:31 -08:00

40 lines
980 B
YAML

include-source: false # Drop file/line/col from output
skip:
- Go
- TypeScript
---
permissions:
actions: write
on: push
jobs:
deploy-level-0:
uses: contoso/templates/.github/workflows/deploy-level-1.yml@v1
---
contoso/templates/.github/workflows/deploy-level-1.yml@v1
---
permissions:
actions: read
on: workflow_call
jobs:
deploy-level-1:
uses: contoso/templates/.github/workflows/deploy-level-2.yml@v1
---
contoso/templates/.github/workflows/deploy-level-2.yml@v1
---
on: workflow_call
permissions:
actions: write
jobs:
deploy-level-2:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
"Message": "contoso/templates/.github/workflows/deploy-level-1.yml@v1 (Line: 5, Col: 3): Error calling workflow 'contoso/templates/.github/workflows/deploy-level-2.yml@v1'. The workflow 'contoso/templates/.github/workflows/deploy-level-2.yml@v1' is requesting 'actions: write', but is only allowed 'actions: read'."
}
]
}