Skip to content

Commit

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

ci(super-linter.yml): add workflow_dispatch trigger for manual runs
ci(super-linter.yml): update actions/checkout to v4 and super-linter to v7 for latest features and fixes
ci(super-linter.yml): add permissions block for enhanced security and access control
  • Loading branch information
rtuszik committed Sep 19, 2024
1 parent fcfaef6 commit 501ed90
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,36 @@
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

- name: Lint Code Base
uses: github/super-linter@v4
uses: github/super-linter@v7
env:
VALIDATE_ALL_CODEBASE: true
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 501ed90

Please sign in to comment.