Skip to content

Key Vault / Production #10

Key Vault / Production

Key Vault / Production #10

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