Skip to content

webhook: check for non-.sts.yaml files in .github/chainguard #958

webhook: check for non-.sts.yaml files in .github/chainguard

webhook: check for non-.sts.yaml files in .github/chainguard #958

Workflow file for this run

# Copyright 2024 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- 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@abd537417cf4991e1ba8e21a67b1119f4f53b8e0 # v1.64.1
with:
actionlint_flags: ${{ steps.get_yamls.outputs.files }}