mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-24 07:21:57 -04:00
Moved git-secrets check to a different workflow (#271)
git-secrets check is now performed on all PR branches
This commit is contained in:
parent
4b5d1e4395
commit
de19eeb7d3
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
|
@ -45,22 +45,3 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
bash kernel/.github/actions/url_verifier.sh kernel
|
bash kernel/.github/actions/url_verifier.sh kernel
|
||||||
|
|
||||||
git-secrets:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
- name: Checkout awslabs/git-secrets
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
repository: awslabs/git-secrets
|
|
||||||
ref: master
|
|
||||||
path: git-secrets
|
|
||||||
- name: Install git-secrets
|
|
||||||
run: cd git-secrets && sudo make install && cd ..
|
|
||||||
- name: Run git-secrets
|
|
||||||
run: |
|
|
||||||
git-secrets --register-aws
|
|
||||||
git-secrets --scan
|
|
||||||
|
|
||||||
|
|
24
.github/workflows/git-secrets.yml
vendored
Normal file
24
.github/workflows/git-secrets.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
name: git-secrets Check
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
jobs:
|
||||||
|
git-secrets:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Checkout awslabs/git-secrets
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: awslabs/git-secrets
|
||||||
|
ref: master
|
||||||
|
path: git-secrets
|
||||||
|
- name: Install git-secrets
|
||||||
|
run: cd git-secrets && sudo make install && cd ..
|
||||||
|
- name: Run git-secrets
|
||||||
|
run: |
|
||||||
|
git-secrets --register-aws
|
||||||
|
git-secrets --scan
|
Loading…
Reference in a new issue