From 2f12e2da0379066cf4cab26867ccb194e6d80938 Mon Sep 17 00:00:00 2001 From: Doria Keung Date: Tue, 10 Oct 2023 13:30:49 -0600 Subject: [PATCH 1/4] Use multiline string for release workflow yaml field --- .github/workflows/release.yaml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index eeeed1e90a..1157ffc361 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -91,7 +91,8 @@ jobs: with: app_id: ${{env.APP_ID}} private_key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }} - repositories: [ ${{ github.repository }} ] + repositories: >- + [ ${{ github.repository }} ] permissions: >- {"contents": "write"} - name: Set VERSION variable from tag @@ -169,7 +170,8 @@ jobs: with: app_id: ${{env.APP_ID}} private_key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }} - repositories: [ ${{ github.repository }} ] + repositories: >- + [ ${{ github.repository }} ] permissions: >- {"contents": "write", "pull_requests": "write"} - name: Checkout repository code @@ -212,7 +214,8 @@ jobs: with: app_id: ${{secrets.BUF_MAVEN_PUBLISH_APP_ID}} private_key: ${{ secrets.BUF_MAVEN_PUBLISH_APP_PRIVATE_KEY }} - repositories: [ "bufbuild/buf-maven-publish" ] + repositories: >- + [ "bufbuild/buf-maven-publish" ] permissions: >- {"actions": "write"} - name: trigger maven update @@ -239,7 +242,8 @@ jobs: with: app_id: ${{secrets.BUF_NPM_PUBLISH_RELEASE_APP_ID}} private_key: ${{ secrets.BUF_NPM_PUBLISH_RELEASE_APP_PRIVATE_KEY }} - repositories: [ "bufbuild/buf-npm-publish" ] + repositories: >- + [ "bufbuild/buf-npm-publish" ] permissions: >- {"actions": "write"} - name: trigger npm publish @@ -266,7 +270,8 @@ jobs: with: app_id: ${{secrets.HOMEBREW_RELEASE_APP_ID}} private_key: ${{ secrets.HOMEBREW_RELEASE_APP_PRIVATE_KEY }} - repositories: [ "bufbuild/homebrew-buf" ] + repositories: >- + [ "bufbuild/homebrew-buf" ] permissions: >- {"actions": "write"} - name: trigger homebrew-buf release @@ -293,7 +298,8 @@ jobs: with: app_id: ${{secrets.VIM_BUF_RELEASE_APP_ID}} private_key: ${{ secrets.VIM_BUF_RELEASE_APP_PRIVATE_KEY }} - repositories: [ "bufbuild/vim-buf" ] + repositories: >- + [ "bufbuild/vim-buf" ] permissions: >- {"actions": "write"} - name: trigger vim-buf release @@ -320,7 +326,8 @@ jobs: with: app_id: ${{secrets.BUF_BUILD_RELEASE_APP_ID}} private_key: ${{ secrets.BUF_BUILD_RELEASE_APP_PRIVATE_KEY }} - repositories: [ "bufbuild/buf.build" ] + repositories: >- + [ "bufbuild/buf.build" ] permissions: >- {"actions": "write"} - name: trigger buf.build release @@ -347,7 +354,8 @@ jobs: with: app_id: ${{secrets.BUF_SETUP_ACTION_RELEASE_APP_ID}} private_key: ${{ secrets.BUF_SETUP_ACTION_RELEASE_APP_PRIVATE_KEY }} - repositories: [ "bufbuild/buf-setup-action" ] + repositories: >- + [ "bufbuild/buf-setup-action" ] permissions: >- {"actions": "write"} - name: trigger buf-setup-action release From c49d411b9eb70d987e39e079d4c625038ea55cc3 Mon Sep 17 00:00:00 2001 From: Doria Keung Date: Tue, 10 Oct 2023 13:37:32 -0600 Subject: [PATCH 2/4] Just use a list instead --- .github/workflows/release.yaml | 35 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1157ffc361..36c5e43167 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -91,8 +91,8 @@ jobs: with: app_id: ${{env.APP_ID}} private_key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }} - repositories: >- - [ ${{ github.repository }} ] + repositories: + - ${{ github.repository }} ] permissions: >- {"contents": "write"} - name: Set VERSION variable from tag @@ -121,7 +121,8 @@ jobs: with: app_id: ${{env.APP_ID}} private_key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }} - repositories: [ ${{ github.repository }} ] + repositories: + - ${{ github.repository }} permissions: >- {"contents": "write", "pull_requests": "write"} - name: Checkout repository code @@ -170,8 +171,8 @@ jobs: with: app_id: ${{env.APP_ID}} private_key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }} - repositories: >- - [ ${{ github.repository }} ] + repositories: + - ${{ github.repository }} permissions: >- {"contents": "write", "pull_requests": "write"} - name: Checkout repository code @@ -214,8 +215,8 @@ jobs: with: app_id: ${{secrets.BUF_MAVEN_PUBLISH_APP_ID}} private_key: ${{ secrets.BUF_MAVEN_PUBLISH_APP_PRIVATE_KEY }} - repositories: >- - [ "bufbuild/buf-maven-publish" ] + repositories: + - "bufbuild/buf-maven-publish" permissions: >- {"actions": "write"} - name: trigger maven update @@ -242,8 +243,8 @@ jobs: with: app_id: ${{secrets.BUF_NPM_PUBLISH_RELEASE_APP_ID}} private_key: ${{ secrets.BUF_NPM_PUBLISH_RELEASE_APP_PRIVATE_KEY }} - repositories: >- - [ "bufbuild/buf-npm-publish" ] + repositories: + - "bufbuild/buf-npm-publish" permissions: >- {"actions": "write"} - name: trigger npm publish @@ -270,8 +271,8 @@ jobs: with: app_id: ${{secrets.HOMEBREW_RELEASE_APP_ID}} private_key: ${{ secrets.HOMEBREW_RELEASE_APP_PRIVATE_KEY }} - repositories: >- - [ "bufbuild/homebrew-buf" ] + repositories: + - "bufbuild/homebrew-buf" permissions: >- {"actions": "write"} - name: trigger homebrew-buf release @@ -298,8 +299,8 @@ jobs: with: app_id: ${{secrets.VIM_BUF_RELEASE_APP_ID}} private_key: ${{ secrets.VIM_BUF_RELEASE_APP_PRIVATE_KEY }} - repositories: >- - [ "bufbuild/vim-buf" ] + repositories: + - "bufbuild/vim-buf" permissions: >- {"actions": "write"} - name: trigger vim-buf release @@ -326,8 +327,8 @@ jobs: with: app_id: ${{secrets.BUF_BUILD_RELEASE_APP_ID}} private_key: ${{ secrets.BUF_BUILD_RELEASE_APP_PRIVATE_KEY }} - repositories: >- - [ "bufbuild/buf.build" ] + repositories: + "bufbuild/buf.build" permissions: >- {"actions": "write"} - name: trigger buf.build release @@ -354,8 +355,8 @@ jobs: with: app_id: ${{secrets.BUF_SETUP_ACTION_RELEASE_APP_ID}} private_key: ${{ secrets.BUF_SETUP_ACTION_RELEASE_APP_PRIVATE_KEY }} - repositories: >- - [ "bufbuild/buf-setup-action" ] + repositories: + - "bufbuild/buf-setup-action" permissions: >- {"actions": "write"} - name: trigger buf-setup-action release From 8328b4c2b87f7658a6b5e239aad0420eec6c6b5b Mon Sep 17 00:00:00 2001 From: Doria Keung Date: Tue, 10 Oct 2023 13:45:16 -0600 Subject: [PATCH 3/4] Fix extra bracket --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 36c5e43167..85446431cd 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -92,7 +92,7 @@ jobs: app_id: ${{env.APP_ID}} private_key: ${{ secrets.TOKEN_EXCHANGE_GH_APP_PRIVATE_KEY }} repositories: - - ${{ github.repository }} ] + - ${{ github.repository }} permissions: >- {"contents": "write"} - name: Set VERSION variable from tag From ce4864207030935d2e22cc0a8cb73b8a2f6e1ccb Mon Sep 17 00:00:00 2001 From: Doria Keung Date: Tue, 10 Oct 2023 13:48:14 -0600 Subject: [PATCH 4/4] Fix list --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 85446431cd..c751acc2d0 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -328,7 +328,7 @@ jobs: app_id: ${{secrets.BUF_BUILD_RELEASE_APP_ID}} private_key: ${{ secrets.BUF_BUILD_RELEASE_APP_PRIVATE_KEY }} repositories: - "bufbuild/buf.build" + - "bufbuild/buf.build" permissions: >- {"actions": "write"} - name: trigger buf.build release