sourcegraph/.github/workflows/buf-breaking-check.yml
Vincent 1a9954fc59
Pin third-party actions (#61037)
* pin third-party actions
2024-03-12 16:32:27 +00:00

19 lines
636 B
YAML

on:
pull_request:
types:
- opened
paths:
- '*.proto'
jobs:
validate-protos:
runs-on: ubuntu-latest
steps:
# Run `git checkout`
- uses: actions/checkout@v2
# Install the `buf` CLI
- uses: bufbuild/buf-setup-action@517ee23296d5caf38df31c21945e6a54bbc8a89f # SECURITY: pin third-party action hashes
# Run breaking change detection against the `main` branch
- uses: bufbuild/buf-breaking-action@a074e988ee34efcd4927079e79c611f428354c01 # SECURITY: pin third-party action hashes
with:
against: 'https://github.com/sourcegraph/sourcegraph.git#branch=main'