-
Notifications
You must be signed in to change notification settings - Fork 685
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Samet Akcay <samet.akcay@intel.com>
- Loading branch information
1 parent
84e0511
commit a294377
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
name: Pull Request Checks | ||
|
||
on: | ||
pull_request: | ||
branches: [main, feature] | ||
|
||
jobs: | ||
pre-commit-full: | ||
uses: ./.github/actions/linting/pre-commit.yaml | ||
uses: ./.github/actions/linting/pre-commit.yaml@main # Add @main or specific reference | ||
# Runs all hooks on all files | ||
|
||
# Example of running specific hooks on changed files | ||
ruff-changed: | ||
uses: ./.github/actions/linting/specific-hooks.yaml | ||
uses: ./.github/actions/linting/specific-hooks.yaml@main # Add @main or specific reference | ||
with: | ||
hook_id: ruff | ||
files: ${{ join(github.event.pull_request.changed_files, ' ') }} | ||
|
||
# Security specific hooks | ||
security-checks: | ||
uses: ./.github/actions/linting/pre-commit.yaml | ||
uses: ./.github/actions/linting/pre-commit.yaml@main # Add @main or specific reference | ||
with: | ||
hooks: bandit |