We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e24520 commit fe6e426Copy full SHA for fe6e426
1 file changed
.github/workflows/_workflow_lint.yml
@@ -1,18 +1,20 @@
1
name: Lint workflows
2
3
on:
4
- pull_request:
5
- paths:
6
- - '.github/workflows/**'
7
- push:
8
- branches: [main]
+ workflow_call:
+
+permissions:
+ contents: read
9
10
jobs:
11
actionlint:
12
runs-on: ubuntu-latest
13
steps:
14
- uses: actions/checkout@v4
+ - name: Download actionlint
15
+ id: get_actionlint
16
+ run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
17
+ shell: bash
18
- name: Run actionlint
- uses: docker://rhysd/actionlint:latest
- with:
- args: -color
19
+ run: ${{ steps.get_actionlint.outputs.executable }} -color
20
0 commit comments