Skip to content

Commit 3b97860

Browse files
committed
feat: Addde SCA analysis when PR to main or push to feat, feature, or fix branches
1 parent 05fce0a commit 3b97860

2 files changed

Lines changed: 26 additions & 18 deletions

File tree

.github/workflows/pre-commit_check.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Static Code Analysis, runs when PR to main or push to feature/**, feat/**, fix/** branches.
2+
3+
name: Static Code Analysis
4+
5+
on:
6+
pull_request:
7+
branches:
8+
- main
9+
push:
10+
branches:
11+
- "feature/**"
12+
- "feat/**"
13+
- "fix/**"
14+
workflow_dispatch:
15+
16+
jobs:
17+
static-code-analysis:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Install uv
23+
uses: astral-sh/setup-uv@v5
24+
25+
- name: Run Static Code Analysis
26+
run: uvx pre-commit run --all-files --show-diff-on-failure --color=always

0 commit comments

Comments
 (0)