GH Actions: set permissions for each workflow/job #242
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Yamllint | |
| on: | |
| # Run on all pushes and on all pull requests. | |
| push: | |
| pull_request: | |
| # Allow manually triggering the workflow. | |
| workflow_dispatch: | |
| # Permissions should be configured at the job level. | |
| permissions: {} | |
| jobs: | |
| yamllint: | |
| permissions: | |
| contents: read # To clone the repo. | |
| name: 'Lint Yaml' | |
| uses: ./.github/workflows/reusable-yamllint.yml | |
| with: | |
| strict: true |