Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Trying to get this worked with latest versions of buf #6

Open
devansh-dalal opened this issue Jul 12, 2021 · 2 comments
Open

Trying to get this worked with latest versions of buf #6

devansh-dalal opened this issue Jul 12, 2021 · 2 comments

Comments

@devansh-dalal
Copy link

devansh-dalal commented Jul 12, 2021

With the .github/workflows/buf_checks.yaml

name: Proto Backward compatibility checks on pull requests

on: pull_request

jobs:

  breaking:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - uses: Spotnana-Tech/setup-buf@v1
        with:
          version: 0.43.0
      - run: buf breaking --against ".git#branch=${{ github.base_ref }}" --against-config src/infra/ci-cd/build/tools/buf/buf.yaml --config src/infra/ci-cd/build/tools/buf/buf.yaml --verbose

and buf.yaml as

# For breaking, recommendation is having the single value "FILE" in use.
# See https://docs.buf.build/lint-usage
# See https://docs.buf.build/breaking-usage
version: v1beta1
build:
  roots:
    - src/java/protos/src/main/proto
breaking:
  use:
    - FILE
~              

we are getting this error in git action,
Screenshot 2021-07-12 at 8 30 04 AM

Everything runs smoothly on local.
Would be very helpful if some can give insights to whats is missing

@devansh-dalal
Copy link
Author

devansh-dalal commented Jul 12, 2021

I am sure, this is some permissions issue, so sharing the setup task permissions as well,
Screenshot 2021-07-12 at 8 36 01 AM

and this is the screenshot of a good run when run the same command from local:
Screenshot 2021-07-12 at 8 39 37 AM

@wizhi
Copy link
Owner

wizhi commented Jul 20, 2021

Did you ever figure out your issue @devansh-dalal? :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants