gnodet commented on code in PR #13206: URL: https://github.com/apache/maven/pull/13206#discussion_r4781124898
########## .github/workflows/actionlint.yml: ########## @@ -0,0 +1,41 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# Lints the GitHub Actions workflows themselves with actionlint, via the shared +# reusable workflow in apache/maven-gh-actions-shared. Only runs when a workflow +# file changes. +name: Actionlint + +on: + push: Review Comment: Every action reference in `maven.yml` uses SHA pinning with a version comment (e.g., `actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1`). This reusable workflow call uses a tag reference (`@v5`) instead, which is inconsistent with the project convention. Once `apache/maven-gh-actions-shared#322` lands, consider pinning to the resulting commit SHA: ```yaml uses: apache/maven-gh-actions-shared/.github/workflows/actionlint.yml@<sha> # v5 ``` This aligns with the existing supply-chain hardening pattern in this repo. (Tag references in org-internal repos are lower risk than third-party ones, so this is a nit rather than a blocker.) _Claude Code on behalf of Guillaume Nodet_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
