Skip to content

Commit 1f18b27

Browse files
felickzCopilot
andauthored
ci: use digest-pinned Patch Release Me 0.6.7 (#226)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 8414528 commit 1f18b27

2 files changed

Lines changed: 10 additions & 45 deletions

File tree

‎.github/workflows/update-codeql-version.yml‎

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -136,29 +136,11 @@ jobs:
136136

137137
- name: Bump release version (optional)
138138
if: steps.release_bump.outputs.bump != ''
139-
run: |
140-
set -euo pipefail
141-
# Invoke the pinned patch-release-me image directly via `docker run`
142-
# instead of `uses: 42ByteLabs/patch-release-me@...`. That action's own
143-
# action.yml builds its Docker CMD as a single YAML list item
144-
# (`-m "${{ inputs.mode }}"`); Docker container actions don't go
145-
# through a shell, so the literal quote characters end up baked into
146-
# ONE argv token (`-m "minor"`). clap can't match that against
147-
# "patch"/"minor"/"major" and silently falls back to its own default
148-
# (Patch) - meaning `minor`/`major` have always quietly produced a
149-
# patch bump instead (confirmed via a local repro: see PR history).
150-
# Running the same pinned image ourselves via a normal shell `run:`
151-
# step naturally splits `-m` and the mode value into separate argv
152-
# entries, avoiding the bug entirely.
153-
#
154-
# Pinned by digest (not just tag) so the exact image content can't
155-
# change out from under us - digest corresponds to the 0.6.5 tag.
156-
docker run --rm \
157-
--user "$(id -u):$(id -g)" \
158-
-v "${{ github.workspace }}:/repo" \
159-
-w /repo \
160-
ghcr.io/42bytelabs/patch-release-me@sha256:d9d7abe7051855d0c395fec99d931acc002fb6b299ca16b8123e2c8ef0c7e750 \
161-
--disable-banner bump -m ${{ steps.release_bump.outputs.bump }}
139+
# TODO: Return to the upstream action after its runtime image is digest-pinned:
140+
# https://github.com/42ByteLabs/patch-release-me/issues/169
141+
uses: docker://ghcr.io/42bytelabs/patch-release-me:0.6.7@sha256:b9624359ce08707dfb4d22bcbf9d1a75f7f4718ccec610ddaa62280ffea98958
142+
with:
143+
args: --disable-banner bump -m ${{ steps.release_bump.outputs.bump }}
162144

163145
- name: Set release prerelease flag (optional)
164146
if: steps.release_bump.outputs.bump != ''

‎.github/workflows/update-release.yml‎

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -36,28 +36,11 @@ jobs:
3636
private-key: ${{ secrets.SECLABS_APP_KEY }}
3737

3838
- name: "Patch Release Me"
39-
run: |
40-
set -euo pipefail
41-
# Invoke the pinned patch-release-me image directly via `docker run`
42-
# instead of `uses: 42ByteLabs/patch-release-me@...`. That action's own
43-
# action.yml builds its Docker CMD as a single YAML list item
44-
# (`-m "${{ inputs.mode }}"`); Docker container actions don't go
45-
# through a shell, so the literal quote characters end up baked into
46-
# ONE argv token (`-m "minor"`). clap can't match that against
47-
# "patch"/"minor"/"major" and silently falls back to its own default
48-
# (Patch) - meaning `minor`/`major` have always quietly produced a
49-
# patch bump instead (confirmed via a local repro: see PR history).
50-
# Running the same pinned image ourselves via a normal shell `run:`
51-
# step naturally splits `-m` and the mode value into separate argv
52-
# entries, avoiding the bug entirely.
53-
# Pinned by digest (not just tag) so the exact image content can't
54-
# change out from under us - digest corresponds to the 0.6.5 tag.
55-
docker run --rm \
56-
--user "$(id -u):$(id -g)" \
57-
-v "${{ github.workspace }}:/repo" \
58-
-w /repo \
59-
ghcr.io/42bytelabs/patch-release-me@sha256:d9d7abe7051855d0c395fec99d931acc002fb6b299ca16b8123e2c8ef0c7e750 \
60-
--disable-banner bump -m ${{ inputs.mode }}
39+
# TODO: Return to the upstream action after its runtime image is digest-pinned:
40+
# https://github.com/42ByteLabs/patch-release-me/issues/169
41+
uses: docker://ghcr.io/42bytelabs/patch-release-me:0.6.7@sha256:b9624359ce08707dfb4d22bcbf9d1a75f7f4718ccec610ddaa62280ffea98958
42+
with:
43+
args: --disable-banner bump -m ${{ inputs.mode }}
6144

6245
- name: Determine new release version
6346
id: release_version

0 commit comments

Comments
 (0)