feat(sagemaker): add processing and transform job volume CMK checks #6025
This file contains hidden or 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: 'Tools: Comment Label Update' | |
| on: | |
| issue_comment: | |
| types: | |
| - 'created' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.issue.number }} | |
| cancel-in-progress: false | |
| permissions: {} | |
| jobs: | |
| update-labels: | |
| if: contains(github.event.issue.labels.*.name, 'status/awaiting-response') | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| permissions: | |
| issues: write | |
| pull-requests: write | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Remove 'status/awaiting-response' label | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| ISSUE_NUMBER: ${{ github.event.issue.number }} | |
| run: | | |
| echo "Removing 'status/awaiting-response' label from #$ISSUE_NUMBER" | |
| gh api "/repos/${{ github.repository }}/issues/$ISSUE_NUMBER/labels/status%2Fawaiting-response" \ | |
| -X DELETE | |
| - name: Add 'status/waiting-for-revision' label | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| ISSUE_NUMBER: ${{ github.event.issue.number }} | |
| run: | | |
| echo "Adding 'status/waiting-for-revision' label to #$ISSUE_NUMBER" | |
| gh api "/repos/${{ github.repository }}/issues/$ISSUE_NUMBER/labels" \ | |
| -X POST \ | |
| -f labels[]='status/waiting-for-revision' |