Skip to content

Commit

Permalink
Add Actionlint check for actions
Browse files Browse the repository at this point in the history
Check the actions in this repo with actionlint and yamllint; make the
filename generic so that other checks can also be added
  • Loading branch information
wyardley committed Feb 14, 2025
1 parent 13872b3 commit adb110b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions" # See documentation for possible values
- package-ecosystem: github-actions
directory: "/" # Location of package manifests
schedule:
interval: "daily"
interval: daily
22 changes: 22 additions & 0 deletions .github/workflows/self_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Self Checks
on: pull_request

jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: actionlint
uses: raven-actions/actionlint@01fce4f43a270a612932cb1c64d40505a029f821 # v2.0.0
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: '3.13'

Check failure on line 18 in .github/workflows/self_check.yml

View workflow job for this annotation

GitHub Actions / yamllint

18:33 [trailing-spaces] trailing spaces
- name: Install yamllint
run: pip3 install yamllint
- name: Run yamllint
run: yamllint -f github .
5 changes: 5 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
extends: relaxed

rules:
line-length:
max: 250

0 comments on commit adb110b

Please sign in to comment.