diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index fa13349802..5986eb1eb8 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -14,7 +14,7 @@ name: Lint Code Base ############################# # Start the job on all push # ############################# -on: +on: # yamllint disable-line rule:truthy push: # Remove the line above to run when pushing to master pull_request: @@ -29,6 +29,12 @@ jobs: # Set the agent to run on runs-on: ubuntu-latest + permissions: + contents: read + packages: read + # To report GitHub Actions status checks + statuses: write + ################## # Load all steps # ################## @@ -37,7 +43,7 @@ jobs: # Checkout the code base # ########################## - name: Checkout Code - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Full git history is needed to get a proper list of changed files within `super-linter` fetch-depth: 0 @@ -46,7 +52,7 @@ jobs: # Run Linter against code base # ################################ - name: Lint Code Base - uses: github/super-linter@v4 + uses: super-linter/super-linter/slim@v5 env: VALIDATE_ALL_CODEBASE: false # Change to 'master' if your main branch differs