Add linting rules #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2022 Chainguard, Inc. | |
# SPDX-License-Identifier: Apache-2.0 | |
name: Action Lint | |
on: | |
pull_request: | |
branches: [ 'main', 'release-*' ] | |
jobs: | |
action-lint: | |
name: Action lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Find yamls | |
id: get_yamls | |
run: | | |
yamls="$(find .github/workflows -name "*.y*ml" | grep -v dependabot. | xargs echo)" | |
echo "files=${yamls}" >> "$GITHUB_OUTPUT" | |
- name: Action lint | |
uses: reviewdog/action-actionlint@9ccda195fd3a290c8596db7f1958c897deaa8c76 # v1.40.0 | |
with: | |
actionlint_flags: ${{ steps.get_yamls.outputs.files }} |