Skip to content

GH Actions: set permissions for each workflow/job #242

GH Actions: set permissions for each workflow/job

GH Actions: set permissions for each workflow/job #242

Workflow file for this run

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