Skip to content

Commit cb9e9c5

Browse files
committed
chore(release): drop v prefix from action Dockerfile tag
Align the github-action base image tag with the new GHCR convention introduced in v0.30.0 (no v prefix). The legacy :v0.30.0 tag remains available via a one-shot manifest copy for any consumer still pinned to it; future releases will publish only :X.Y.Z. - github-action/Dockerfile: FROM ...:v0.30.0 -> ...:0.30.0 - scripts/version_common.cr: drop v from the extraction regex - scripts/version_update.cr: regex tolerates legacy v? on input, replacement always writes the unprefixed form
1 parent a160b35 commit cb9e9c5

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

github-action/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use the OWASP Noir base image from GitHub Container Registry
2-
FROM ghcr.io/owasp-noir/noir:v0.30.0
2+
FROM ghcr.io/owasp-noir/noir:0.30.0
33

44
# Install jq for JSON processing
55
USER 0

scripts/version_common.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ end
6262

6363
# Extract version from github-action/Dockerfile
6464
def get_action_dockerfile_version : String?
65-
match = File.read(ACTION_DOCKER).match(/FROM\s+ghcr\.io\/owasp-noir\/noir:v([\d.]+)/)
65+
match = File.read(ACTION_DOCKER).match(/FROM\s+ghcr\.io\/owasp-noir\/noir:([\d.]+)/)
6666
match ? match[1] : nil
6767
rescue
6868
nil

scripts/version_update.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ end
7777
# Update github-action/Dockerfile FROM tag
7878
def update_action_dockerfile_version(new_version : String) : Bool
7979
content = File.read(ACTION_DOCKER)
80-
File.write(ACTION_DOCKER, content.gsub(/(FROM\s+ghcr\.io\/owasp-noir\/noir:)v[\d.]+/, "\\1v#{new_version}"))
80+
File.write(ACTION_DOCKER, content.gsub(/(FROM\s+ghcr\.io\/owasp-noir\/noir:)v?[\d.]+/, "\\1#{new_version}"))
8181
true
8282
rescue ex
8383
STDERR.puts " Error updating #{ACTION_DOCKER}: #{ex.message}"

0 commit comments

Comments
 (0)