mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-27 14:39:40 -08:00
e0502f00c8
ci: add minimum GitHub token permissions for workflows
26 lines
621 B
YAML
26 lines
621 B
YAML
name: buf.build
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- ".github/workflows/buf-lint.yml"
|
|
- "**.proto"
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
buf:
|
|
name: lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: bufbuild/buf-setup-action@v1.23.1
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
- uses: bufbuild/buf-lint-action@v1
|
|
with:
|
|
input: 'prompb'
|
|
- uses: bufbuild/buf-breaking-action@v1
|
|
with:
|
|
input: 'prompb'
|
|
against: 'https://github.com/prometheus/prometheus.git#branch=main,ref=HEAD,subdir=prompb'
|