Files
languageservices/workflow-parser/testdata/reader/errors-reusable-workflow-permissions-not-allowed-workflow-level-from-caller-default.yml

31 lines
865 B
YAML
Raw Permalink Normal View History

include-source: false # Drop file/line/col from output
skip:
- Go
permissions-policy: LimitedRead
---
on: push
jobs:
deploy:
uses: contoso/templates/.github/workflows/deploy.yml@v1
---
contoso/templates/.github/workflows/deploy.yml@v1
---
on: workflow_call
permissions:
actions: write
2023-02-17 18:36:00 -05:00
contents: write
packages: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- run: echo hi
---
{
"errors": [
{
2023-02-17 18:36:00 -05:00
"Message": ".github/workflows/errors-reusable-workflow-permissions-not-allowed-workflow-level-from-caller-default.yml (Line: 3, Col: 3): Error calling workflow 'contoso/templates/.github/workflows/deploy.yml@v1'. The workflow 'contoso/templates/.github/workflows/deploy.yml@v1' is requesting 'actions: write, contents: write, packages: write', but is only allowed 'actions: none, contents: read, packages: read'."
}
]
}