Skip to content

Commit 74667db

Browse files
committed
Pin actions/checkout to v6.0.2 SHA and fix license headers
Pin actions/checkout in check-project-actions.yml to the same SHA used across the rest of the repo (de0fac2e4500dabe0009e67214ff5f5447ce83dd, v6.0.2) so zizmor's unpinned-uses audit passes. In gateway/check_repository_actions.py, move the existing Apache license header above the PEP 723 script block so pre-commit's insert-license hook detects it (it only scans the first few lines). Add a missing Apache license header to utils/actions-audit.py. Generated-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 906230b commit 74667db

3 files changed

Lines changed: 28 additions & 9 deletions

File tree

.github/workflows/check-project-actions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ jobs:
6767
contents: read
6868
steps:
6969
- name: "Checkout apache/infrastructure-actions"
70-
uses: actions/checkout@v6
70+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7171
with:
7272
repository: 'apache/infrastructure-actions'
7373
ref: 'main'
7474

7575
- name: "Checkout repository to be checked"
76-
uses: actions/checkout@v6
76+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7777
with:
7878
repository: '${{ inputs.repository }}'
7979
ref: ${{ inputs.ref }}

gateway/check_repository_actions.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# /// script
2-
# requires-python = ">=3.13"
3-
# dependencies = [
4-
# "ruyaml",
5-
# ]
6-
# ///
71
#
82
# Licensed to the Apache Software Foundation (ASF) under one
93
# or more contributor license agreements. See the NOTICE file
@@ -22,7 +16,13 @@
2216
# specific language governing permissions and limitations
2317
# under the License.
2418
#
25-
#
19+
20+
# /// script
21+
# requires-python = ">=3.13"
22+
# dependencies = [
23+
# "ruyaml",
24+
# ]
25+
# ///
2626

2727
import fnmatch
2828
import os

utils/actions-audit.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
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+
120
# /// script
221
# requires-python = ">=3.11"
322
# dependencies = [

0 commit comments

Comments
 (0)