Skip to content

Commit

Permalink
Merge pull request #5 from DFE-Digital/readme
Browse files Browse the repository at this point in the history
Added Bash readme
  • Loading branch information
DrizzlyOwl authored Mar 8, 2024
2 parents f110fb3 + b5dab6a commit e644865
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions bash/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Bash Script - Key Vault Secret Scanner

You must ensure you have installed `bash`, `az` (Azure CLI) and `jq`.

If you're running this on macOS you will need to change two references to `date`.

Open `kv-secret-scan.sh` in a Text Editor and replace:

```diff
-TODAY=$(date -Idate)
-DATE_90=$(date --date="90 days ago" +"%Y-%m-%d")
+TODAY=$(gdate -Idate)
+DATE_90=$(gdate --date="90 days ago" +"%Y-%m-%d")
```

## Set up
```
SLACK_WEBHOOK_URL=${SLACK_WEBHOOK_URL:-""}
cd ./bash/
sudo chmod +x ./kv-secret-scan.sh ./notify.sh
bash ./kv-secret-scan.sh
```

0 comments on commit e644865

Please sign in to comment.