TestAuth #365
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: TestAuth | |
on: | |
workflow_dispatch: | |
schedule: | |
# Run this once a day to check if everything is still working as expected. | |
- cron: "0 6,12 * * *" | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: configure aws credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
role-to-assume: ${{ secrets.AWS_ROLE }} | |
role-session-name: TestAuthSession | |
aws-region: ${{ secrets.AWS_REGION }} | |
- name: Send metric success | |
run: | | |
aws cloudwatch put-metric-data --namespace TestingAuth --metric-name TestAuthFromGitHubAction --value 1 --dimensions OS=Ubuntu | |