Skip to content

Commit

Permalink
Add git secrets workflow (#3104)
Browse files Browse the repository at this point in the history
  • Loading branch information
Realmonia committed Dec 15, 2021
1 parent 21cf3fb commit f05e620
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitallowed
@@ -0,0 +1 @@
012345678901
23 changes: 23 additions & 0 deletions .github/workflows/gitsecrets.yml
@@ -0,0 +1,23 @@
name: GitSecretsScan

on: [push, pull_request]

jobs:
git-secret-check:
name: Git Secrets Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
path: src/github.com/aws/amazon-ecs-agent
- name: Git Secrets Scan Script
run: |
set -ex
cd $GITHUB_WORKSPACE
git clone https://github.com/awslabs/git-secrets.git && cd git-secrets
sudo make install
git secrets --register-aws --global
cd $GITHUB_WORKSPACE/src/github.com/aws/amazon-ecs-agent
git secrets --install
git secrets --register-aws
git secrets --scan-history

0 comments on commit f05e620

Please sign in to comment.