-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
ghasum update -force
update existing checksums that are incorrect
Update the implementation of the `ghasum update` command to update any existing sums that are incorrect IF the `-force` flag is used. Here, "existing sums" refers to entries in the sumfile for which the whole ID matches before and after the update. This supports updating such entries natively (i.e. without having to manually edit the sumfile), which may be necessary if the incident has been reviewed and deemed acceptable. The CLI help message as well as the specification text has been updated accordingly.
- Loading branch information
1 parent
a3b2e42
commit 4fb902a
Showing
4 changed files
with
35 additions
and
11 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
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 |
---|---|---|
|
@@ -34,6 +34,12 @@ stdout 'Ok' | |
! stderr . | ||
cmp no-version/.github/workflows/gha.sum .want/gha.sum | ||
|
||
# Invalid existing sum | ||
exec ghasum update -cache .cache/ -force invalid-sum/ | ||
stdout 'Ok' | ||
! stderr . | ||
cmp invalid-sum/.github/workflows/gha.sum .want/gha.sum | ||
|
||
-- duplicate/.github/workflows/gha.sum -- | ||
version 1 | ||
|
||
|
@@ -118,6 +124,21 @@ actions/[email protected] GGAV+/JnlPt41B9iINyvcX5z6a4ue+NblmwiDNVORz0= | |
name: Example workflow | ||
on: [push] | ||
|
||
jobs: | ||
example: | ||
name: example | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
-- invalid-sum/.github/workflows/gha.sum -- | ||
version 1 | ||
|
||
actions/[email protected] GGAV+/JnlPt41B9iINyvcX5z6a4ue+NblmwiDNVORz0= | ||
-- invalid-sum/.github/workflows/workflow.yml -- | ||
name: Example workflow | ||
on: [push] | ||
|
||
jobs: | ||
example: | ||
name: example | ||
|