Enable write-only support for secret_data to google_secret_manager_regional_secret_version #6324
Workflow file for this run
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: override-labels | |
| permissions: read-all | |
| on: | |
| pull_request_target: | |
| types: [labeled, unlabeled] | |
| jobs: | |
| override-breaking-change: | |
| runs-on: ubuntu-22.04 | |
| if: github.event.label.name == 'override-breaking-change' | |
| permissions: | |
| statuses: write | |
| env: | |
| STATE: "${{ github.event.action == 'labeled' && 'success' || 'failure' }}" | |
| DESCRIPTION: "${{ github.event.action == 'labeled' && 'override-breaking-change applied' || 'override-breaking-change removed' }}" | |
| steps: | |
| - name: Override breaking changes label applied | |
| shell: bash | |
| run: | | |
| echo "state: $STATE" | |
| echo "description: $DESCRIPTION" | |
| curl -L \ | |
| -X POST \ | |
| -H "Accept: application/vnd.github+json" \ | |
| -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | |
| -H "X-GitHub-Api-Version: 2022-11-28" \ | |
| https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.event.pull_request.head.sha }} \ | |
| -d "{\"state\":\"${STATE}\",\"description\":\"${DESCRIPTION}\",\"context\":\"terraform-provider-breaking-change-test\"}" | |
| override-missing-service-label: | |
| runs-on: ubuntu-22.04 | |
| if: github.event.label.name == 'override-missing-service-labels' | |
| permissions: | |
| statuses: write | |
| env: | |
| STATE: "${{ github.event.action == 'labeled' && 'success' || 'failure' }}" | |
| DESCRIPTION: "${{ github.event.action == 'labeled' && 'override-missing-service-labels applied' || 'override-missing-service-labels removed' }}" | |
| steps: | |
| - name: Override missing service label applied | |
| shell: bash | |
| run: | | |
| echo "state: $STATE" | |
| echo "description: $DESCRIPTION" | |
| curl -L \ | |
| -X POST \ | |
| -H "Accept: application/vnd.github+json" \ | |
| -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | |
| -H "X-GitHub-Api-Version: 2022-11-28" \ | |
| https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.event.pull_request.head.sha }} \ | |
| -d "{\"state\":\"${STATE}\",\"description\":\"${DESCRIPTION}\",\"context\":\"terraform-provider-missing-service-labels\"}" |