Skip to content

Commit 8b7a7f9

Browse files
upgraded to actions specific linter
1 parent 2e50bd0 commit 8b7a7f9

1 file changed

Lines changed: 6 additions & 13 deletions

File tree

.github/workflows/tests.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,17 @@ on:
77
branches: [main]
88

99
jobs:
10-
yaml-lint:
11-
name: YAML Lint
10+
github-actions-lint:
11+
name: Lint GitHub Actions Workflows with actionlint (docker)
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
1315
steps:
1416
- name: Checkout code
1517
uses: actions/checkout@v4
16-
17-
- name: Set up Python
18-
uses: actions/setup-python@v4
19-
with:
20-
python-version: '3.x'
21-
22-
- name: Install yamllint
23-
run: pip install yamllint
24-
25-
- name: Lint YAML files
18+
- name: Lint workflows with actionlint (docker)
2619
run: |
27-
find . -name "*.yml" -o -name "*.yaml" | xargs yamllint -c .yamllint.yml
20+
docker run --rm -v "${PWD}:/repo" -w /repo rhysd/actionlint:1.7.7
2821
2922
workflow-validation:
3023
name: Workflow Validation

0 commit comments

Comments
 (0)