Skip to content

Utilize the reusable action for scanning workflows #176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/workflow-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Scan & Lint Workflow Files

on:
workflow_dispatch:
push:
branches:
- main
- develop
paths:
- '**.yml'
pull_request:
types: [ opened, edited, synchronize, reopened, ready_for_review ]
paths:
- '**.yml'

# Cancels all previous workflow runs for pull requests that have not completed.
concurrency:
# The concurrency group contains the workflow name and the branch name for pull requests
# or the commit hash for any other events.
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
cancel-in-progress: true

# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

jobs:
lint:
name: Scan & lint workflow files
permissions:
security-events: write
actions: read
contents: read
uses: newfold-labs/workflows/.github/workflows/reusable-workflow-lint.yml@add/workflow-lint-workflow
Loading