Key Vault / Production #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Key Vault / Production | |
on: | |
workflow_dispatch: | |
schedule: | |
# At 22:00 every night | |
- cron: '0 22 * * *' | |
jobs: | |
refresh: | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- name: Azure login with SP | |
uses: azure/#@v1 | |
with: | |
creds: ${{ secrets.AZURE_SUBSCRIPTION_CREDENTIALS }} | |
- name: Clone repo | |
uses: actions/checkout@v4 | |
- name: Ensure script is executable | |
run: chmod +x ./kv-secret-scan.sh ./notify.sh | |
- name: Execute task | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
run: bash ./kv-secret-scan.sh -s ${{ secrets.AZURE_SUBSCRIPTION_NAME }} -q |