Merge pull request #1530 from redpanda-data/ts/add-list-secret-scopes… #356
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: Buf CI | |
on: | |
push: | |
paths: | |
- .github/workflows/buf.yml | |
- proto/**.proto | |
pull_request: | |
types: [opened, synchronize, reopened, labeled, unlabeled] | |
paths: | |
- .github/workflows/buf.yml | |
- proto/**.proto | |
delete: | |
jobs: | |
push-module: | |
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'redpanda-data/console' }} | |
permissions: | |
id-token: write | |
contents: read | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-region: ${{ vars.RP_AWS_CRED_REGION }} | |
role-to-assume: arn:aws:iam::${{ secrets.RP_AWS_CRED_ACCOUNT_ID }}:role/${{ vars.RP_AWS_CRED_BASE_ROLE_NAME }}${{ github.event.repository.name }} | |
- uses: aws-actions/aws-secretsmanager-get-secrets@v2 | |
with: | |
secret-ids: | | |
,sdlc/prod/github/buf_token | |
parse-json-secrets: true | |
# Run `git checkout` | |
- uses: actions/checkout@v4 | |
- uses: bufbuild/buf-action@v1 | |
with: | |
input: proto | |
token: ${{ env.BUF_TOKEN }} | |
breaking_against: https://github.com/redpanda-data/console.git#branch=master,ref=HEAD~1,subdir=proto |