File tree Expand file tree Collapse file tree
a11y-demo-app-001/.github/workflows
a11y-demo-app-002/.github/workflows
a11y-demo-app-003/.github/workflows
a11y-demo-app-004/.github/workflows
a11y-demo-app-005/.github/workflows Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 HTTP_STATUS=$(curl -s -o results/a11y-demo-app-001.sarif -w "%{http_code}" \
2929 -X POST "${{ env.SCANNER_BASE_URL }}/api/ci/scan" \
3030 -H "Content-Type: application/json" \
31- -d '{"url": "https://a11y-demo-app-001-app.azurewebsites.net/ ", "format": "sarif"}' \
31+ -d '{"url": "${{ secrets.APP_URL }} ", "format": "sarif"}' \
3232 --max-time 120)
3333
3434 echo "Attempt $attempt - HTTP status: $HTTP_STATUS"
Original file line number Diff line number Diff line change @@ -103,6 +103,13 @@ jobs:
103103 echo "Deployed to: $SITE_URL"
104104 echo "site_url=$SITE_URL" >> "$GITHUB_OUTPUT"
105105
106+ - name : Update APP_URL secret
107+ env :
108+ GH_TOKEN : ${{ secrets.ORG_ADMIN_TOKEN }}
109+ run : |
110+ gh secret set APP_URL --repo "${{ github.repository }}" --body "${{ steps.deploy-container.outputs.site_url }}"
111+ echo "APP_URL secret updated"
112+
106113 - name : Capture deployment screenshot
107114 run : |
108115 echo "Waiting for app to warm up..."
Original file line number Diff line number Diff line change 2828 HTTP_STATUS=$(curl -s -o results/a11y-demo-app-002.sarif -w "%{http_code}" \
2929 -X POST "${{ env.SCANNER_BASE_URL }}/api/ci/scan" \
3030 -H "Content-Type: application/json" \
31- -d '{"url": "https://a11y-demo-app-002-app.azurewebsites.net/ ", "format": "sarif"}' \
31+ -d '{"url": "${{ secrets.APP_URL }} ", "format": "sarif"}' \
3232 --max-time 120)
3333
3434 echo "Attempt $attempt - HTTP status: $HTTP_STATUS"
Original file line number Diff line number Diff line change @@ -103,6 +103,13 @@ jobs:
103103 echo "Deployed to: $SITE_URL"
104104 echo "site_url=$SITE_URL" >> "$GITHUB_OUTPUT"
105105
106+ - name : Update APP_URL secret
107+ env :
108+ GH_TOKEN : ${{ secrets.ORG_ADMIN_TOKEN }}
109+ run : |
110+ gh secret set APP_URL --repo "${{ github.repository }}" --body "${{ steps.deploy-container.outputs.site_url }}"
111+ echo "APP_URL secret updated"
112+
106113 - name : Capture deployment screenshot
107114 run : |
108115 echo "Waiting for app to warm up..."
Original file line number Diff line number Diff line change 2828 HTTP_STATUS=$(curl -s -o results/a11y-demo-app-003.sarif -w "%{http_code}" \
2929 -X POST "${{ env.SCANNER_BASE_URL }}/api/ci/scan" \
3030 -H "Content-Type: application/json" \
31- -d '{"url": "https://a11y-demo-app-003-app.azurewebsites.net/ ", "format": "sarif"}' \
31+ -d '{"url": "${{ secrets.APP_URL }} ", "format": "sarif"}' \
3232 --max-time 120)
3333
3434 echo "Attempt $attempt - HTTP status: $HTTP_STATUS"
Original file line number Diff line number Diff line change @@ -103,6 +103,13 @@ jobs:
103103 echo "Deployed to: $SITE_URL"
104104 echo "site_url=$SITE_URL" >> "$GITHUB_OUTPUT"
105105
106+ - name : Update APP_URL secret
107+ env :
108+ GH_TOKEN : ${{ secrets.ORG_ADMIN_TOKEN }}
109+ run : |
110+ gh secret set APP_URL --repo "${{ github.repository }}" --body "${{ steps.deploy-container.outputs.site_url }}"
111+ echo "APP_URL secret updated"
112+
106113 - name : Capture deployment screenshot
107114 run : |
108115 echo "Waiting for app to warm up..."
Original file line number Diff line number Diff line change 2828 HTTP_STATUS=$(curl -s -o results/a11y-demo-app-004.sarif -w "%{http_code}" \
2929 -X POST "${{ env.SCANNER_BASE_URL }}/api/ci/scan" \
3030 -H "Content-Type: application/json" \
31- -d '{"url": "https://a11y-demo-app-004-app.azurewebsites.net/ ", "format": "sarif"}' \
31+ -d '{"url": "${{ secrets.APP_URL }} ", "format": "sarif"}' \
3232 --max-time 120)
3333
3434 echo "Attempt $attempt - HTTP status: $HTTP_STATUS"
Original file line number Diff line number Diff line change @@ -103,6 +103,13 @@ jobs:
103103 echo "Deployed to: $SITE_URL"
104104 echo "site_url=$SITE_URL" >> "$GITHUB_OUTPUT"
105105
106+ - name : Update APP_URL secret
107+ env :
108+ GH_TOKEN : ${{ secrets.ORG_ADMIN_TOKEN }}
109+ run : |
110+ gh secret set APP_URL --repo "${{ github.repository }}" --body "${{ steps.deploy-container.outputs.site_url }}"
111+ echo "APP_URL secret updated"
112+
106113 - name : Capture deployment screenshot
107114 run : |
108115 echo "Waiting for app to warm up..."
Original file line number Diff line number Diff line change 2828 HTTP_STATUS=$(curl -s -o results/a11y-demo-app-005.sarif -w "%{http_code}" \
2929 -X POST "${{ env.SCANNER_BASE_URL }}/api/ci/scan" \
3030 -H "Content-Type: application/json" \
31- -d '{"url": "https://a11y-demo-app-005-app.azurewebsites.net/ ", "format": "sarif"}' \
31+ -d '{"url": "${{ secrets.APP_URL }} ", "format": "sarif"}' \
3232 --max-time 120)
3333
3434 echo "Attempt $attempt - HTTP status: $HTTP_STATUS"
Original file line number Diff line number Diff line change @@ -103,6 +103,13 @@ jobs:
103103 echo "Deployed to: $SITE_URL"
104104 echo "site_url=$SITE_URL" >> "$GITHUB_OUTPUT"
105105
106+ - name : Update APP_URL secret
107+ env :
108+ GH_TOKEN : ${{ secrets.ORG_ADMIN_TOKEN }}
109+ run : |
110+ gh secret set APP_URL --repo "${{ github.repository }}" --body "${{ steps.deploy-container.outputs.site_url }}"
111+ echo "APP_URL secret updated"
112+
106113 - name : Capture deployment screenshot
107114 run : |
108115 echo "Waiting for app to warm up..."
You can’t perform that action at this time.
0 commit comments