File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 2222 " --network=host"
2323 ],
2424 "remoteEnv" : { "LOCAL_WORKSPACE_FOLDER" : " ${localWorkspaceFolder}" },
25- "postAttachCommand " : " git-secrets --register-aws; git-secrets --add-provider -- cat /usr/share/secrets-scanner/nhsd-rules-deny.txt " ,
25+ "postCreateCommand " : " bash .devcontainer/../scripts/install-git-secrets.sh " ,
2626 "features" : {
2727 },
2828 "customizations" : {
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ if ! git config --get-all secrets.patterns | grep -Fq AKIA; then
3+ git-secrets --register-aws
4+ fi
5+ if ! git config --get-all secrets.providers | grep -Fxq " cat /usr/share/secrets-scanner/nhsd-rules-deny.txt" ; then
6+ git-secrets --add-provider -- cat /usr/share/secrets-scanner/nhsd-rules-deny.txt
7+ fi
You can’t perform that action at this time.
0 commit comments