Skip to content

Commit b32ee11

Browse files
committed
Add ASF allowlist check workflow
Adds a CI workflow that verifies all `uses: refs` in workflow files are on the ASF allowlist using apache/infrastructure-actions/allowlist-check. This new workflow triggers on PRs and pushes to main that modify .github/** Intentionally pinned to @main to always check against the latest allowlist
1 parent 5d40cb2 commit b32ee11

1 file changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing,
13+
# software distributed under the License is distributed on an
14+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
# KIND, either express or implied. See the License for the
16+
# specific language governing permissions and limitations
17+
# under the License.
18+
#
19+
20+
# Verifies all GitHub Actions refs are on the ASF allowlist.
21+
# See https://github.com/apache/infrastructure-actions/blob/main/README.md
22+
23+
name: "ASF Allowlist Check"
24+
25+
on:
26+
pull_request:
27+
paths:
28+
- ".github/**"
29+
push:
30+
paths:
31+
- ".github/**"
32+
33+
permissions:
34+
contents: read
35+
36+
jobs:
37+
asf-allowlist-check:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
41+
with:
42+
persist-credentials: false
43+
# Intentionally unpinned to always use the latest allowlist from the ASF.
44+
- uses: apache/infrastructure-actions/allowlist-check@main

0 commit comments

Comments
 (0)