-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
No longer required by `buf` as of `v1.35.0`, requires version restriction.
- Loading branch information
1 parent
34dff83
commit 4b64761
Showing
18 changed files
with
25 additions
and
56 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,6 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: bufbuild/[email protected] | ||
with: | ||
username: ${{ secrets.BUF_USERNAME }} | ||
token: ${{ secrets.BUF_TOKEN }} | ||
``` | ||
|
@@ -65,7 +64,6 @@ Add these parameters under the `with` section of the `uses` step in the workflow | |
| Parameter | Description | Default | | ||
|:--------------------------------|:---------------------------------------------------|:-------------------| | ||
| `version` | Version of the `buf` CLI to use. | Latest [version][buf-releases] | | ||
| `username` | Username for [logging into the BSR](https://buf.build/docs/bsr/authentication). | | | ||
| `token` | API token for [logging into the BSR](https://buf.build/docs/bsr/authentication). | | | ||
| `domain` | Domain for logging into the BSR, enterprise only.| `buf.build` | | ||
| `input` | [Input](https://buf.build/docs/reference/inputs) for the `buf` command. | | | ||
|
@@ -117,7 +115,7 @@ For reproducible builds, you can pin to an explicit version of `buf` by setting | |
```yaml | ||
- uses: bufbuild/[email protected] | ||
with: | ||
version: 1.34.0 | ||
version: 1.35.0 | ||
``` | ||
|
||
If no version is specified in the workflow config, the action will resolve the version in order of precedence: | ||
|
@@ -131,15 +129,12 @@ If no version is specified in the workflow config, the action will resolve the v | |
way for consumers of your APIs to generate code. | ||
Authenticating with the BSR is required for both the push and archive label steps. | ||
|
||
To authenticate with the BSR, set the parameters `username` and `token`. | ||
The `username` and `token` values should be | ||
[stored as secrets in the repository settings](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions). | ||
The `token` value can be [generated from the BSR UI](https://buf.build/docs/bsr/authentication#create-an-api-token). | ||
To authenticate with the BSR, set the API token as the parameter `token`. | ||
Generate a token from the [BSR UI](https://buf.build/docs/bsr/authentication#create-an-api-token) and add it to the [repository secrets](https://docs.github.com/en/actions/reference/encrypted-secrets). | ||
|
||
```yaml | ||
- uses: bufbuild/[email protected] | ||
with: | ||
username: ${{ secrets.BUF_USERNAME }} | ||
token: ${{ secrets.BUF_TOKEN }} | ||
``` | ||
|
||
|
@@ -170,7 +165,6 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: bufbuild/[email protected] | ||
with: | ||
username: ${{ secrets.BUF_USERNAME }} | ||
token: ${{ secrets.BUF_TOKEN }} | ||
+ pr_comment: false | ||
``` | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,5 +15,4 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: bufbuild/[email protected] | ||
with: | ||
username: ${{ secrets.BUF_USERNAME }} | ||
token: ${{ secrets.BUF_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,5 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: bufbuild/[email protected] | ||
with: | ||
username: ${{ secrets.BUF_USERNAME }} | ||
token: ${{ secrets.BUF_TOKEN }} | ||
breaking: ${{ github.event_name == 'pull_request' }} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: bufbuild/[email protected] | ||
with: | ||
# Add username or token secrets to your repository settings to | ||
# authenticate with the Buf Schema Registry. | ||
# Add the parameter token as a secret in your repository settings | ||
# to authenticate with the Buf Schema Registry. | ||
setup_only: true | ||
- run: buf build --error-format=github-actions |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,4 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: bufbuild/[email protected] | ||
with: | ||
username: ${{ secrets.BUF_USERNAME }} | ||
token: ${{ secrets.BUF_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,5 +21,4 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: bufbuild/[email protected] | ||
with: | ||
username: ${{ secrets.BUF_USERNAME }} | ||
token: ${{ secrets.BUF_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: bufbuild/[email protected] | ||
with: | ||
username: ${{ secrets.BUF_USERNAME }} | ||
token: ${{ secrets.BUF_TOKEN }} | ||
lint: | | ||
github.event_name == 'push' && \ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,6 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: bufbuild/[email protected] | ||
with: | ||
username: ${{ secrets.BUF_USERNAME }} | ||
token: ${{ secrets.BUF_TOKEN }} | ||
lint: | | ||
github.event_name == 'pull_request' && \ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: bufbuild/[email protected] | ||
with: | ||
# Username and token are required to authenticate with the Buf Schema Registry. | ||
username: ${{ secrets.BUF_USERNAME }} | ||
# The token paramater is required to authenticate with the Buf Schema Registry. | ||
token: ${{ secrets.BUF_TOKEN }} | ||
lint: ${{ github.event_name == 'push' }} | ||
format: ${{ github.event_name == 'push' }} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,5 @@ jobs: | |
- uses: bufbuild/[email protected] | ||
with: | ||
setup_only: true | ||
version: 1.34.0 | ||
version: 1.35.0 | ||
- run: buf version |
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
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
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