Skip to content

Commit

Permalink
add version to action
Browse files Browse the repository at this point in the history
Signed-off-by: Samet Akcay <samet.akcay@intel.com>
  • Loading branch information
samet-akcay committed Nov 5, 2024
1 parent 84e0511 commit a294377
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/pr-checks.yaml
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

0 comments on commit a294377

Please sign in to comment.