Skip to content

Commit d5399b7

Browse files
authored
Merge branch 'trunk' into copilot/fix-gh-attestation-verification
2 parents b27889b + 0579d74 commit d5399b7

3 files changed

Lines changed: 18 additions & 5 deletions

File tree

.github/workflows/deployment.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
with:
5151
go-version-file: 'go.mod'
5252
- name: Install GoReleaser
53-
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552
53+
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a
5454
with:
5555
version: "~1.17.1"
5656
install-only: true
@@ -103,7 +103,7 @@ jobs:
103103
security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k "$keychain_password" "$keychain"
104104
rm "$RUNNER_TEMP/cert.p12"
105105
- name: Install GoReleaser
106-
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552
106+
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a
107107
with:
108108
version: "~1.17.1"
109109
install-only: true
@@ -157,7 +157,7 @@ jobs:
157157
with:
158158
go-version-file: 'go.mod'
159159
- name: Install GoReleaser
160-
uses: goreleaser/goreleaser-action@9c156ee8a17a598857849441385a2041ef570552
160+
uses: goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a
161161
with:
162162
version: "~1.17.1"
163163
install-only: true
@@ -384,7 +384,7 @@ jobs:
384384
git diff --name-status @{upstream}..
385385
fi
386386
- name: Bump homebrew-core formula
387-
uses: mislav/bump-homebrew-formula-action@8e2baa47daaa8db10fcdeb04105dfa6850eb0d68
387+
uses: mislav/bump-homebrew-formula-action@56a283fa15557e9abaa4bdb63b8212abc68e655c
388388
if: inputs.environment == 'production' && !contains(inputs.tag_name, '-')
389389
with:
390390
formula-name: gh

.github/workflows/homebrew-bump.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Bump homebrew-core formula
20-
uses: mislav/bump-homebrew-formula-action@8e2baa47daaa8db10fcdeb04105dfa6850eb0d68
20+
uses: mislav/bump-homebrew-formula-action@56a283fa15557e9abaa4bdb63b8212abc68e655c
2121
if: inputs.environment == 'production' && !contains(inputs.tag_name, '-')
2222
with:
2323
formula-name: gh

pkg/cmd/release/create/create.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,19 @@ func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Co
106106
This may result in the same or duplicate release which may not be desirable in some cases.
107107
Use %[1]s--fail-on-no-commits%[1]s to fail if no new commits are available. This flag has no
108108
effect if there are no existing releases or this is the very first release.
109+
110+
## Immutable Releases
111+
112+
When release immutability is enabled for a repository, the following protections are enforced:
113+
- Git tags associated with a release cannot be modified or deleted.
114+
- Release assets cannot be modified or deleted.
115+
116+
Immutability is enforced only after a release is published. Draft releases can be modified
117+
or deleted, and the associated git tags can be modified or deleted as well.
118+
119+
When using the %[1]screate%[1]s command to attach assets to a release, separate API calls
120+
are made to create the release as a draft, upload the assets, and then publish the release.
121+
Immutability protections will be enforced ONLY after the release is published.
109122
`, "`"),
110123
Example: heredoc.Doc(`
111124
# Interactively create a release

0 commit comments

Comments
 (0)