Skip to content

build(deps): bump github/codeql-action/init from 4.37.4 to 4.37.6 #61

build(deps): bump github/codeql-action/init from 4.37.4 to 4.37.6

build(deps): bump github/codeql-action/init from 4.37.4 to 4.37.6 #61

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pull-requests: read
security-events: write
jobs:
setup:
runs-on: ubuntu-latest
outputs:
ref: ${{ steps.setup.outputs.ref }}
repo: ${{ steps.setup.outputs.repo }}
base_sha: ${{ steps.setup.outputs.base_sha }}
checkout_path: ${{ steps.setup.outputs.checkout_path }}
has_changes_yaml: ${{ steps.setup.outputs.has_changes }}
has_changes_md: ${{ steps.detect_md.outputs.has_changes }}
steps:
- name: Workflow setup (YAML relevance)
id: setup
uses: Framework-R-D/action-workflow-setup@f73307dd8c13cb66c2565c9ace32571517b1cea8 # v1
with:
file-type: yaml
- name: Detect Markdown changes
id: detect_md
# Only meaningful for pull_request events, where base_sha is populated and
# a diff base exists. For push / workflow_dispatch the markdown-check job
# runs unconditionally (its github.event_name != 'pull_request' arm), so
# this detection step is skipped and its empty output is harmless.
if: github.event_name == 'pull_request' && steps.setup.outputs.is_act != 'true'
uses: Framework-R-D/action-run-change-detection@047250bcbe1be9fb479c8f3ceeb85ac1084ede2e # v2
with:
checkout-path: ${{ steps.setup.outputs.checkout_path }}
ref: ${{ steps.setup.outputs.ref }}
repo: ${{ steps.setup.outputs.repo }}
base-ref: ${{ steps.setup.outputs.base_sha }}
file-type: md
actionlint:
needs: setup
if: >
always() && needs.setup.result == 'success' && (
github.event_name != 'pull_request' ||
needs.setup.outputs.has_changes_yaml == 'true'
)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ needs.setup.outputs.ref }}
path: ${{ needs.setup.outputs.checkout_path }}
repository: ${{ needs.setup.outputs.repo }}
persist-credentials: false
- uses: raven-actions/actionlint@3d39aea434753780c3b3d4a1a31c854b4dbf49d7 # v2
with:
# Pass explicit file globs so actionlint does not need to discover
# the project root from GITHUB_WORKSPACE (which doesn't contain
# .github/workflows/ when checkout used a path: subdirectory).
files: ${{ needs.setup.outputs.checkout_path }}/.github/workflows/*.yaml,${{ needs.setup.outputs.checkout_path }}/.github/workflows/*.yml
flags: -config-file ${{ needs.setup.outputs.checkout_path }}/.github/actionlint.yaml
yaml-check:
needs: setup
if: >
always() && needs.setup.result == 'success' && (
github.event_name != 'pull_request' ||
needs.setup.outputs.has_changes_yaml == 'true'
)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ needs.setup.outputs.ref }}
path: ${{ needs.setup.outputs.checkout_path }}
repository: ${{ needs.setup.outputs.repo }}
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- name: Install yamllint
run: uv tool install yamllint
- name: Run yamllint
working-directory: ${{ needs.setup.outputs.checkout_path }}
run: yamllint .
markdown-check:
needs: setup
if: >
always() && needs.setup.result == 'success' && (
github.event_name != 'pull_request' ||
needs.setup.outputs.has_changes_md == 'true'
)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ needs.setup.outputs.ref }}
path: ${{ needs.setup.outputs.checkout_path }}
repository: ${{ needs.setup.outputs.repo }}
persist-credentials: false
- uses: DavidAnson/markdownlint-cli2-action@21c1be1b93ad9ed58fa840aacc3f279cde2a72ff # v24.2.0
with:
globs: |
${{ needs.setup.outputs.checkout_path }}/**/*.md
!${{ needs.setup.outputs.checkout_path }}/**/CHANGELOG.md
codeql:
needs: setup
if: >
always() && needs.setup.result == 'success' && (
github.event_name != 'pull_request' ||
needs.setup.outputs.has_changes_yaml == 'true'
)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ needs.setup.outputs.ref }}
path: ${{ needs.setup.outputs.checkout_path }}
repository: ${{ needs.setup.outputs.repo }}
persist-credentials: false
- uses: github/codeql-action/init@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
with:
languages: actions
build-mode: none
queries: security-extended
source-root: ${{ needs.setup.outputs.checkout_path }}
- uses: github/codeql-action/analyze@f205ea1c3313d32999d8d6a48b4f6530d4437b38 # v4.37.4
with:
checkout_path: ${{ needs.setup.outputs.checkout_path }}