Skip to content

Commit

Permalink
fix check_sp workflow (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
RMcVelia authored Oct 8, 2024
1 parent 4aa9e5f commit e105a1c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check_sp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:
- name: Select Tests
id: select-tests
run: |
d="{'environment':'dev', 'principal': 's165d01-dqt-contributor', 'keyvault': 's165d01-dv-kv'}"
t="{'environment':'test', 'principal': 's165t01-dqt-contributor', 'keyvault': 's165t01-pp-kv'}"
p="{'environment':'production', 'principal': 's165p01-dqt-contributor', 'keyvault': 's165p01-pd-kv'}"
d="{'environment':'dev', 'principal': 's165d01-dqt-contributor', 'keyvault': 's165d01-trngen-dv-kv'}"
t="{'environment':'test', 'principal': 's165t01-dqt-contributor', 'keyvault': 's165t01-trngen-pp-kv'}"
p="{'environment':'production', 'principal': 's165p01-dqt-contributor', 'keyvault': 's165p01-trngen-pd-kv'}"
tests="{ 'data':[ ${d}, ${t}, ${p} ]}"
echo "tests=${tests}" >> $GITHUB_OUTPUT
check_expires:
Expand Down Expand Up @@ -67,5 +67,5 @@ jobs:
SLACK_MESSAGE: |
The Service Principal ${{ fromJson(steps.pwsh_check_expire.outputs.json_data).data.Application }}
key ${{ fromJson(steps.pwsh_check_expire.outputs.json_data).data.Name }} is due to expire in ${{fromJson(steps.pwsh_check_expire.outputs.json_data).data.ExpiresDays}} days
Please follow the process in https://dfe-technical-guidance.london.cloudapps.digital/how-to/security/managing-secrets/#access-key-expiration to renew.
Please follow the process in https://technical-guidance.education.gov.uk/infrastructure/hosting/azure-cip/#access-key-expiration to renew.
SLACK_WEBHOOK: ${{ steps.keyvault-yaml-secret.outputs.SLACK_WEBHOOK }}

0 comments on commit e105a1c

Please sign in to comment.