Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaerlocher committed Feb 16, 2024
1 parent 1993b9f commit 0033654
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ on:
pull_request:
branches: [master, main]

permissions: none

###############
# Set the Job #
###############
Expand All @@ -31,9 +33,10 @@ jobs:
# Set the agent to run on
runs-on: ubuntu-latest

# Set top-level permissions to read-only
permissions:
contents: read
packages: read
statuses: write

##################
# Load all steps #
Expand All @@ -45,7 +48,9 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Full git history for proper analysis
# Full git history is needed to get a proper
# list of changed files within `super-linter`
fetch-depth: 0

################################
# Run Linter against code base #
Expand All @@ -55,5 +60,3 @@ jobs:
env:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write # Specific permission for this step if necessary

0 comments on commit 0033654

Please sign in to comment.