We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e50bd0 commit 8b7a7f9Copy full SHA for 8b7a7f9
1 file changed
.github/workflows/tests.yml
@@ -7,24 +7,17 @@ on:
7
branches: [main]
8
9
jobs:
10
- yaml-lint:
11
- name: YAML Lint
+ github-actions-lint:
+ name: Lint GitHub Actions Workflows with actionlint (docker)
12
runs-on: ubuntu-latest
13
+ permissions:
14
+ contents: read
15
steps:
16
- name: Checkout code
17
uses: actions/checkout@v4
-
- - 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
+ - name: Lint workflows with actionlint (docker)
26
run: |
27
- find . -name "*.yml" -o -name "*.yaml" | xargs yamllint -c .yamllint.yml
+ docker run --rm -v "${PWD}:/repo" -w /repo rhysd/actionlint:1.7.7
28
29
workflow-validation:
30
name: Workflow Validation
0 commit comments