Skip to content

Commit

Permalink
Added git-secrets check to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
xuelix committed Mar 2, 2021
1 parent 1bb18c8 commit 43152ec
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: CI Checks
on:
push:
branches: ["**"]
pull_request:
branches: [master]
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

0 comments on commit 43152ec

Please sign in to comment.