diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d647b98c49..ba6ecc10e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -175,11 +175,12 @@ jobs: - name: Get Brew tap repo token id: brew-tap-token - uses: peter-murray/workflow-application-token-action@dc0413987a085fa17d19df9e47d4677cf81ffef3 # v3.0.0 + uses: actions/create-github-app-token@f2acddfb5195534d487896a656232b016a682f3c # v1.9.0 with: - application_id: ${{ secrets.HOMEBREW_TAP_WORKFLOW_GITHUB_APP_ID }} - application_private_key: ${{ secrets.HOMEBREW_TAP_WORKFLOW_GITHUB_APP_SECRET }} - organization: defenseunicorns + app-id: ${{ secrets.HOMEBREW_TAP_WORKFLOW_GITHUB_APP_ID }} + private-key: ${{ secrets.HOMEBREW_TAP_WORKFLOW_GITHUB_APP_SECRET }} + owner: defenseunicorns + repositories: homebrew-tap # Create the GitHub release notes, upload artifact backups to S3, publish homebrew recipe - name: Run GoReleaser diff --git a/.goreleaser.yaml b/.goreleaser.yaml index fec6226549..2699443597 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -54,7 +54,7 @@ sboms: snapshot: name_template: "{{ incpatch .Version }}-snapshot" -# Use the auto-generated changlog github provides +# Use the auto-generated changelog github provides changelog: use: github-native @@ -76,10 +76,15 @@ brews: owner: defenseunicorns name: homebrew-tap token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" + branch: "{{ .ProjectName }}-{{ .Tag }}" pull_request: enabled: true + base: + branch: main + owner: defenseunicorns + name: homebrew-tap - commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}" + commit_msg_template: "build(release): upgrade {{ .ProjectName }} to {{ .Tag }}" homepage: "https://zarf.dev/" description: "DevSecOps for Air Gap" @@ -90,7 +95,14 @@ brews: owner: defenseunicorns name: homebrew-tap token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}" - commit_msg_template: "Brew formula update for {{ .ProjectName }} versioned release {{ .Tag }}" + branch: "{{ .ProjectName }}-{{ .Tag }}" + pull_request: + enabled: true + base: + branch: main + owner: defenseunicorns + name: homebrew-tap + commit_msg_template: "build(release): {{ .ProjectName }}@{{ .Tag }}" homepage: "https://zarf.dev/" description: "DevSecOps for Air Gap"