Skip to content

chore(deps): update github/codeql-action action to v3.26.12 #367

chore(deps): update github/codeql-action action to v3.26.12

chore(deps): update github/codeql-action action to v3.26.12 #367

Workflow file for this run

# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "Lint"
on: # yamllint disable-line rule:truthy
push:
branches:
- "main"
# eslint-disable-next-line yml/no-empty-mapping-value
pull_request: # yamllint disable-line rule:empty-values
merge_group: # yamllint disable-line rule:empty-values
concurrency:
group: "ci-lint-${{ github.ref }}-1"
cancel-in-progress: true
permissions:
contents: "read" # to fetch code (actions/checkout)
jobs:
files-changed:
name: "Detect what files changed"
runs-on: "ubuntu-24.04"
timeout-minutes: 3
# Map a step output to a job output
outputs:
markdown_lintable: "${{ steps.changes.outputs.markdown_lintable }}"
yaml_lintable: "${{ steps.changes.outputs.yaml_lintable }}"
steps:
- name: "Harden Runner"
uses: "step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7" # v2.10.1
with:
egress-policy: "audit"
- name: "Git checkout"
uses: "actions/checkout@d632683dd7b4114ad314bca15554477dd762a938" # v4.2.0
env:
GIT_COMMITTER_NAME: "GitHub Actions Shell"
GIT_AUTHOR_NAME: "GitHub Actions Shell"
EMAIL: "github-actions[bot]@users.noreply.github.com"
- name: "Check for file changes"
uses: "dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36" # v3.0.2
id: "changes"
with:
token: "${{ github.token }}"
filters: ".github/file-filters.yml"
yaml-lint:
if: "needs.files-changed.outputs.yaml_lintable == 'true'"
needs: "files-changed"
name: "Lint (yaml)"
runs-on: "ubuntu-latest"
steps:
- name: "Harden Runner"
uses: "step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7" # v2.10.1
with:
egress-policy: "audit"
- name: "Git checkout"
uses: "actions/checkout@d632683dd7b4114ad314bca15554477dd762a938" # v4.2.0
with:
fetch-depth: 2
env:
GIT_COMMITTER_NAME: "GitHub Actions Shell"
GIT_AUTHOR_NAME: "GitHub Actions Shell"
EMAIL: "github-actions[bot]@users.noreply.github.com"
- name: "Lint YAML files"
uses: "ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c" # v3.1.1
with:
config_file: ".yamllint.yaml"
file_or_dir: "."
strict: true
markdown-lint:
if: "needs.files-changed.outputs.markdown_lintable == 'true'"
needs: "files-changed"
name: "Lint (markdown)"
runs-on: "ubuntu-latest"
steps:
- name: "Harden Runner"
uses: "step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7" # v2.10.1
with:
egress-policy: "audit"
- name: "Git checkout"
uses: "actions/checkout@d632683dd7b4114ad314bca15554477dd762a938" # v4.2.0
with:
fetch-depth: 2
env:
GIT_COMMITTER_NAME: "GitHub Actions Shell"
GIT_AUTHOR_NAME: "GitHub Actions Shell"
EMAIL: "github-actions[bot]@users.noreply.github.com"
- uses: "pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d" # v3.0.0
with:
run_install: false
- name: "Setup resources and environment"
id: "setup"
uses: "anolilab/workflows/step/setup@main"
with:
node-version: "20"
install-bun: false
enable-nx-cache: false
- name: "lint"
run: "pnpm run lint:text"
continue-on-error: true
- name: "skipping markdown lint for now"
run: "exit 0"
# This check runs once all dependant jobs have passed
# It symbolizes that all required Frontend checks have succesfully passed (Or skipped)
# This check is the only required GitHub check
test-required-check:
needs: ["files-changed", "yaml-lint"] # TODO add "markdown-lint"
name: "Check Lint Run"
# This is necessary since a failed/skipped dependent job would cause this job to be skipped
if: "always()"
runs-on: "ubuntu-24.04"
steps:
# If any jobs we depend on fail, we will fail since this is a required check
# NOTE: A timeout is considered a failure
- name: "Harden Runner"
uses: "step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7" # v2.10.1
with:
egress-policy: "audit"
- name: "Check for failures"
if: "contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')"
run: |
echo "One of the dependent jobs have failed. You may need to re-run it." && exit 1