Browse Source

Merge pull request #7 from xuelix/git-secrets

Added git-secrets check to Github Actions
pull/9/head
Gaurav-Aggarwal-AWS 4 years ago
committed by GitHub
parent
commit
7d3942ab56
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 26
      .github/workflows/ci.yml

26
.github/workflows/ci.yml

@ -0,0 +1,26 @@
name: CI Checks
on:
push:
branches: ["**"]
pull_request:
branches: ["main"]
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…
Cancel
Save