slawekjaranowski commented on code in PR #322:
URL: 
https://github.com/apache/maven-gh-actions-shared/pull/322#discussion_r4105999292


##########
.github/workflows/actionlint.yml:
##########
@@ -0,0 +1,80 @@
+# 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.
+
+# Reusable workflow: lints a repository's own GitHub Actions workflows with
+# actionlint (https://github.com/rhysd/actionlint) -- workflow syntax, 
expression
+# contexts, and embedded shell (via shellcheck). actionlint runs through
+# github/super-linter (restricted to the GitHub Actions validator) because the 
ASF
+# org allowed-actions policy permits GitHub-owned actions but not the 
stand-alone
+# actionlint action/image.
+#
+# Usage in a consuming repository (.github/workflows/actionlint.yml):
+#
+#   name: Actionlint
+#   on:
+#     push:
+#       paths: [ '.github/workflows/**' ]
+#     pull_request:
+#       paths: [ '.github/workflows/**' ]
+#   # cancel superseded runs on the same ref
+#   concurrency:
+#     group: ${{ github.workflow }}-${{ github.ref }}
+#     cancel-in-progress: true
+#   jobs:
+#     actionlint:
+#       uses: 
apache/maven-gh-actions-shared/.github/workflows/actionlint.yml@v5
+
+name: Actionlint
+
+on:
+  workflow_call:
+    inputs:
+      validate-all-codebase:
+        description: >-
+          Lint every workflow file (true) or only those changed in the event's
+          commit range (false). Defaults to true.
+        required: false
+        default: true
+        type: boolean
+
+permissions:
+  contents: read
+
+jobs:
+  actionlint:
+    name: Lint GitHub Actions workflows
+    runs-on: ubuntu-latest

Review Comment:
   can we try we `ubuntu-slim`



-- 
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]

Reply via email to