Skip to content

build(deps): bump actions/checkout from 6.0.3 to 7.0.0 #24

build(deps): bump actions/checkout from 6.0.3 to 7.0.0

build(deps): bump actions/checkout from 6.0.3 to 7.0.0 #24

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@c70418d77a03191b165dd7dfebadbe00c443566c # v1
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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
ref: ${{ needs.setup.outputs.ref }}
path: ${{ needs.setup.outputs.checkout_path }}
repository: ${{ needs.setup.outputs.repo }}
persist-credentials: false
- uses: raven-actions/actionlint@205b530c5d9fa8f44ae9ed59f341a0db994aa6f8 # 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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
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@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
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@ded1f9488f68a970bc66ea5619e13e9b52e601cd # v23.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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
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@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
with:
languages: actions
build-mode: none
queries: security-extended
source-root: ${{ needs.setup.outputs.checkout_path }}
- uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4.36.2
with:
checkout_path: ${{ needs.setup.outputs.checkout_path }}