-
Notifications
You must be signed in to change notification settings - Fork 60
55 lines (48 loc) · 1.45 KB
/
actionlint.yaml
File metadata and controls
55 lines (48 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright 2026 Chainguard, Inc.
# SPDX-License-Identifier: Apache-2.0
name: Action Lint
on:
pull_request:
branches: ['main']
paths:
- '.github/workflows/**'
- '.github/actions/**'
push:
branches: ['main']
paths:
- '.github/workflows/**'
- '.github/actions/**'
permissions: {}
jobs:
action-lint:
permissions:
contents: read # Clone the repository
name: Action lint
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176 # v2.17.0
with:
egress-policy: block
allowed-endpoints: >
*.githubapp.com:443
api.github.com:443
github.com:443
go.dev:443
hooks.slack.com:443
release-assets.githubusercontent.com:443
- name: Check out code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Find yamls
id: get_yamls
run: |
set -ex
mapfile -t yamls < <(find .github/workflows -name "*.y*ml" | grep -v dependabot.)
echo "files=${yamls[*]}" >> "${GITHUB_OUTPUT}"
- name: Action lint
uses: step-security/action-actionlint@c3aa382d371c6b05513ae5907d4f77713e21813c # v1.72.0
env:
SHELLCHECK_OPTS: "--exclude=SC2129"
with:
actionlint_flags: ${{ steps.get_yamls.outputs.files }}