Skip to content

Commit

Permalink
🕵️ Lint GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
CybAtax committed May 24, 2024
1 parent 74c58e2 commit 7a42bcb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/actions-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Lint GitHub actions

on:
pull_request:

concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true

jobs:
lint-github-actions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Retrieve changed files
id: changed-workflow-files
uses: tj-actions/changed-files@v44
with:
files: .github/**/*.yml
- name: Lint workflows
if: steps.changed-workflow-files.outputs.any_changed == 'true'
uses: oxsecurity/megalinter/flavors/cupcake@v7
env:
ENABLE_LINTERS: ACTION_ACTIONLINT
- uses: actions/upload-artifact@v4
if: failure()
with:
name: megalinter-report
path: megalinter-report

0 comments on commit 7a42bcb

Please sign in to comment.