deps(actions): Update actions/setup-python ( v5.1.1 → v5.2.0 ) #1366
Workflow file for this run
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
--- | |
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: Lint Job | |
on: | |
pull_request: {} | |
workflow_dispatch: | |
inputs: | |
run-all: | |
description: "Whether to run all linters or only the ones that have changes" | |
required: false | |
default: false | |
type: boolean | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
paths-filter: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && !github.event.pull_request.draft) | |
outputs: | |
yaml: ${{ steps.filter.outputs.yaml }} | |
bash: ${{ steps.filter.outputs.bash }} | |
markdown: ${{ steps.filter.outputs.markdown }} | |
terraform: ${{ steps.filter.outputs.terraform }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Scan Paths | |
uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | |
id: filter | |
with: | |
filters: | | |
yaml: | |
- '**/*.yml' | |
- '**/*.yaml' | |
bash: | |
- '**/*.sh' | |
- '**/*.bash' | |
markdown: | |
- '**/*.md' | |
- '**/*.markdown' | |
terraform: | |
- '**/*.tf' | |
- '**/*.tfvars' | |
- name: Show Paths | |
run: | | |
echo "yaml=${{ steps.filter.outputs.yaml }}" | |
echo "bash=${{ steps.filter.outputs.bash }}" | |
echo "markdown=${{ steps.filter.outputs.markdown }}" | |
echo "terraform=${{ steps.filter.outputs.terraform }}" | |
yamllint: | |
runs-on: ubuntu-latest | |
needs: [paths-filter] | |
if: needs.paths-filter.outputs.yaml == 'true' || github.event.inputs.run-all == true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Set up Python | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
with: | |
python-version: "3.12" | |
- name: Install yamllint | |
run: pip install yamllint | |
- name: Run yamllint | |
run: yamllint -c .github/configs/yamllint.yaml . | |
shellcheck: | |
runs-on: ubuntu-latest | |
needs: [paths-filter] | |
if: needs.paths-filter.outputs.bash == 'true' || github.event.inputs.run-all == true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Install ShellCheck | |
run: sudo apt-get install -y shellcheck | |
- name: Run ShellCheck | |
run: find . -name "*.sh" -exec shellcheck {} + | |
markdownlint: | |
runs-on: ubuntu-latest | |
needs: [paths-filter] | |
if: needs.paths-filter.outputs.markdown == 'true' || github.event.inputs.run-all == true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Install Node.js | |
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | |
with: | |
node-version: "20" | |
- name: Install markdownlint-cli | |
run: npm install -g markdownlint-cli | |
- name: Run markdownlint | |
run: markdownlint '**/*.md' | |
tflint: | |
runs-on: ubuntu-latest | |
needs: [paths-filter] | |
if: needs.paths-filter.outputs.terraform == 'true' || github.event.inputs.run-all == true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: terraform-linters/setup-tflint@19a52fbac37dacb22a09518e4ef6ee234f2d4987 # v4 | |
name: Setup TFLint | |
with: | |
tflint_version: v0.53.0 | |
- name: Show TFLint version | |
run: tflint --version | |
- name: Init TFLint | |
run: tflint --init | |
- name: Run TFLint | |
run: tflint --format=compact --recursive |