chore(deps): update ksmanis/stage3 docker tag to v20240922 #843
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: lint | |
on: [push, pull_request] | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
with: | |
fetch-depth: 2 | |
- name: Install pre-commit | |
run: pipx install pre-commit | |
- name: Identify Python version | |
run: echo "PYTHON_VERSION=$(python -V | cut -d' ' -f2)" >> "$GITHUB_ENV" | |
- name: Cache pre-commit hooks | |
id: cache-pre-commit | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit-${{ env.PYTHON_VERSION }}-${{ hashFiles('.pre-commit-config.yaml') }} | |
restore-keys: | | |
pre-commit-${{ env.PYTHON_VERSION }}- | |
pre-commit- | |
- name: Prune pre-commit hooks | |
if: steps.cache-pre-commit.outputs.cache-hit != 'true' | |
run: pre-commit gc | |
- name: Run gitlint | |
run: pre-commit run --color=always --hook-stage manual gitlint-ci | |
- name: Run pre-commit | |
run: pre-commit run --all-files --color=always --show-diff-on-failure | |
super-linter: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
with: | |
fetch-depth: 0 | |
- name: Run super-linter | |
uses: github/super-linter@45fc0d88288beee4701c62761281edfee85655d7 # v5.0.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VALIDATE_BASH: false | |
VALIDATE_DOCKERFILE_HADOLINT: false | |
VALIDATE_GITHUB_ACTIONS: false | |
VALIDATE_GITLEAKS: false | |
VALIDATE_MARKDOWN: false | |
VALIDATE_YAML: false |