Skip to content
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

#175 add default branch override #176

Merged
merged 3 commits into from
Feb 5, 2025
Merged
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
9 changes: 7 additions & 2 deletions .github/workflows/lint-workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: lint workflows
on:
workflow_call:
inputs:
default-branch:
default: main
description: "Default branch of the repository"
required: false
type: string
validate-all-codebase:
default: false
description: "Lint all files or only modified: true/false."
Expand Down Expand Up @@ -49,8 +54,8 @@ jobs:
- name: lint code base
uses: super-linter/super-linter@v7.2.1
env:
DEFAULT_BRANCH: main
DEFAULT_BRANCH: ${{ inputs.default-branch }}
FILTER_REGEX_INCLUDE: .*.github/workflows/.*
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# only lint new and modified files
VALIDATE_ALL_CODEBASE: false
VALIDATE_ALL_CODEBASE: ${{ inputs.validate-all-codebase }}