Skip to content

Commit

Permalink
ci(super-linter.yml): update workflow triggers to ignore push to main…
Browse files Browse the repository at this point in the history
… and run on pull request to main

ci(super-linter.yml): add workflow_dispatch trigger for manual runs
ci(super-linter.yml): add permissions block for enhanced security
ci(super-linter.yml): update actions/checkout to version 4 for latest features and fixes
ci(super-linter.yml): fix indentation and spacing issues for better readability
  • Loading branch information
rtuszik committed Sep 19, 2024
1 parent ca53ad6 commit 3c986e6
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
name: Lint
on: [push, pull_request]
on:
push:
branches-ignore: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:

permissions: {}

jobs:
lint:
runs-on: ubuntu-latest

steps:
permissions:
contents: read
packages: read
statuses: write

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -18,7 +30,7 @@ jobs:
VALIDATE_HTML: true
FIX_PYTHON_RUFF: true
VALIDATE_PYTHON_RUFF: true
VALIDATE_MARKDOWN_PRETTIER : true
VALIDATE_MARKDOWN_PRETTIER: true
VALIDATE_GITLEAKS: true
VALIDATE_GITHUB_ACTIONS: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3c986e6

Please sign in to comment.