Skip to content

build(deps): bump actions/checkout from 4.2.2 to 5.0.0 #7

build(deps): bump actions/checkout from 4.2.2 to 5.0.0

build(deps): bump actions/checkout from 4.2.2 to 5.0.0 #7

Workflow file for this run

name: actionlint
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
on:
workflow_dispatch:
pull_request:
branches:
- master
paths:
- ".github/**"
jobs:
action-lint:
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Download actionlint
id: get_actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/v1.7.7/scripts/download-actionlint.bash)
shell: bash
- name: Check workflow files
env:
SHELLCHECK_OPTS: "--severity=error"
run: |
${{ steps.get_actionlint.outputs.executable }} \
-ignore 'label "centreon-(collect-arm64|ubuntu-22.04|common)" is unknown' \
-ignore '"github.head_ref" is potentially untrusted' \
-pyflakes= \
-color
shell: bash
- name: Ensure SHA pinned actions
uses: centreon/github-actions-ensure-sha-pinned-actions@47d553c67ceb08ad660deaeb3b994e47a3dd8fc3 # v3.0.23.3
with:
allowlist: |
centreon/security-tools
yaml-lint:
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.12'
- name: Install Yaml
run: pip install yamllint==1.35.1
- name: Add Yaml Lint Rules
run: |
cat <<EOF >>./yamllint_rules.yml
extends: default
rules:
document-start: disable
line-length: disable
truthy:
check-keys: false
level: error
indentation:
spaces: 2
indent-sequences: true
check-multi-line-strings: false
comments:
ignore-shebangs: true
min-spaces-from-content: 1
comments-indentation: disable
new-lines:
type: unix
new-line-at-end-of-file: enable
EOF
- name: Lint YAML files
run: yamllint -c ./yamllint_rules.yml ./.github/workflows/