fix: set job specific permissions - set contents write for build-dcok… #474
Workflow file for this run
This file contains 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: "Yaml linter" | |
on: push | |
permissions: | |
actions: write # mark parent workflow as failed | |
contents: read # checkout repo | |
statuses: write # update commit statuses in parent workflow | |
jobs: | |
linter: | |
name: "Linter" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
timeout-minutes: 1 | |
- name: Run yamllint | |
uses: ibiqlik/action-yamllint@v3 | |
timeout-minutes: 1 | |
with: | |
file_or_dir: ./.github/workflows/*.yaml | |
config_file: .yamllint.yaml |