Skip to content

Commit de19eeb

Browse files
authored
Moved git-secrets check to a different workflow (#271)
git-secrets check is now performed on all PR branches
1 parent 4b5d1e4 commit de19eeb

File tree

2 files changed

+24
-19
lines changed

2 files changed

+24
-19
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,3 @@ jobs:
4545
run: |
4646
bash kernel/.github/actions/url_verifier.sh kernel
4747
48-
git-secrets:
49-
runs-on: ubuntu-latest
50-
steps:
51-
- uses: actions/checkout@v2
52-
with:
53-
submodules: recursive
54-
- name: Checkout awslabs/git-secrets
55-
uses: actions/checkout@v2
56-
with:
57-
repository: awslabs/git-secrets
58-
ref: master
59-
path: git-secrets
60-
- name: Install git-secrets
61-
run: cd git-secrets && sudo make install && cd ..
62-
- name: Run git-secrets
63-
run: |
64-
git-secrets --register-aws
65-
git-secrets --scan
66-

.github/workflows/git-secrets.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: git-secrets Check
2+
on:
3+
push:
4+
pull_request:
5+
workflow_dispatch:
6+
jobs:
7+
git-secrets:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
submodules: recursive
13+
- name: Checkout awslabs/git-secrets
14+
uses: actions/checkout@v2
15+
with:
16+
repository: awslabs/git-secrets
17+
ref: master
18+
path: git-secrets
19+
- name: Install git-secrets
20+
run: cd git-secrets && sudo make install && cd ..
21+
- name: Run git-secrets
22+
run: |
23+
git-secrets --register-aws
24+
git-secrets --scan

0 commit comments

Comments
 (0)