Skip to content

Commit 1504328

Browse files
committed
chore: added the precommit workflow
Signed-off-by: Manish Dait <daitmanish88@gmail.com>
1 parent 14d19bb commit 1504328

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/pre-commit.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Pre Commit Checks
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
pre-commit-check:
12+
name: Run Pre Commit Check
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Harden the runner (Audit all outbound calls)
17+
uses: step-security/harden-runner@fe104658747b27e96e4f7e80cd0a94068e53901d # v2.16.1
18+
with:
19+
egress-policy: audit
20+
21+
- name: Checkout repository
22+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
26+
with:
27+
python-version: '3.10'
28+
29+
- name: Pre Commit Check
30+
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1

0 commit comments

Comments
 (0)