Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions .github/workflows/buf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ jobs:
if: github.event_name == 'push' || github.event_name == 'pull_request'
runs-on: blacksmith-2vcpu-ubuntu-2404
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Buf – lint, format & breaking
uses: bufbuild/buf-action@v1
with:
# buf CLI version - keep in sync with BUF_VERSION in taskfiles/proto.yaml
version: 1.65.0
lint: true
format: true
breaking: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'Buf Skip Breaking') }}
Expand All @@ -63,22 +65,24 @@ jobs:
needs: validate # Only run after validation passes
runs-on: blacksmith-2vcpu-ubuntu-2404
steps:
- uses: aws-actions/configure-aws-credentials@v4
- uses: aws-actions/configure-aws-credentials@v6
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
- uses: aws-actions/aws-secretsmanager-get-secrets@v3
with:
secret-ids: |
,sdlc/prod/github/buf_token
parse-json-secrets: true

- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Buf – push to registry
uses: bufbuild/buf-action@v1
with:
# buf CLI version - keep in sync with BUF_VERSION in taskfiles/proto.yaml
version: 1.65.0
# No validation - already done in validate job
lint: false
format: false
Expand All @@ -96,22 +100,24 @@ jobs:
github.repository == 'redpanda-data/console'
runs-on: blacksmith-2vcpu-ubuntu-2404
steps:
- uses: aws-actions/configure-aws-credentials@v4
- uses: aws-actions/configure-aws-credentials@v6
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
- uses: aws-actions/aws-secretsmanager-get-secrets@v3
with:
secret-ids: |
,sdlc/prod/github/buf_token
parse-json-secrets: true

- uses: actions/checkout@v5
- uses: actions/checkout@v6

- name: Buf – archive label (ignore if not found)
uses: bufbuild/buf-action@v1
with:
# buf CLI version - keep in sync with BUF_VERSION in taskfiles/proto.yaml
version: 1.65.0
# Only archive - no other operations
push: true
token: ${{ env.BUF_TOKEN }}
Expand Down
Loading