forked from aws/amazon-ecs-ami
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (23 loc) · 826 Bytes
/
Copy pathgitsecrets.yml
File metadata and controls
25 lines (23 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: GitSecretsScan
on: [push, pull_request]
jobs:
git-secret-check:
name: Git Secrets Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: src/github.com/aws/amazon-ecs-ami
- name: Git Secrets Scan Script
run: |
# workaround git-secrets requiring the say command: https://github.com/awslabs/git-secrets/pull/221
ln -s "$(which echo)" /usr/local/bin/say
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-ami
git secrets --install
git secrets --register-aws
git secrets --scan-history