From 014eabb5ea8c57dc15003a7c2c84588103c72184 Mon Sep 17 00:00:00 2001 From: Santiago Bernhardt Date: Wed, 13 Apr 2022 13:29:55 +1200 Subject: [PATCH 1/7] 3.14 bump --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5cc5a480..c99a5164 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.10 +FROM alpine:3.14 LABEL "repository"="https://github.com/anothrNick/github-tag-action" LABEL "homepage"="https://github.com/anothrNick/github-tag-action" LABEL "maintainer"="Nick Sjostrom" From 2b13af66b06a8e2f47b19e7a23a07d4d37ef6088 Mon Sep 17 00:00:00 2001 From: Santiago Bernhardt Date: Wed, 13 Apr 2022 13:51:36 +1200 Subject: [PATCH 2/7] 3.14.5 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c99a5164..27450c1f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.14 +FROM alpine:3.14.5 LABEL "repository"="https://github.com/anothrNick/github-tag-action" LABEL "homepage"="https://github.com/anothrNick/github-tag-action" LABEL "maintainer"="Nick Sjostrom" From d30182485841b1bcf64bd7e77624276214b6fcc1 Mon Sep 17 00:00:00 2001 From: Santiago Bernhardt Date: Wed, 13 Apr 2022 14:30:09 +1200 Subject: [PATCH 3/7] 3.14 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 27450c1f..c99a5164 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:3.14.5 +FROM alpine:3.14 LABEL "repository"="https://github.com/anothrNick/github-tag-action" LABEL "homepage"="https://github.com/anothrNick/github-tag-action" LABEL "maintainer"="Nick Sjostrom" From 1ec7f9598b641773aed7a51cc19953036046ddbd Mon Sep 17 00:00:00 2001 From: Santiago Bernhardt Date: Thu, 14 Apr 2022 09:19:21 +1200 Subject: [PATCH 4/7] ceiling runner workspace --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 540109dc..33ab147a 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -13,6 +13,9 @@ initial_version=${INITIAL_VERSION:-0.0.0} tag_context=${TAG_CONTEXT:-repo} suffix=${PRERELEASE_SUFFIX:-beta} verbose=${VERBOSE:-true} +verbose=${VERBOSE:-true} +# since https://github.blog/2022-04-12-git-security-vulnerability-announced/ runner uses +GIT_CEILING_DIRECTORIES='/github/workspace' cd ${GITHUB_WORKSPACE}/${source} @@ -27,6 +30,7 @@ echo -e "\tINITIAL_VERSION: ${initial_version}" echo -e "\tTAG_CONTEXT: ${tag_context}" echo -e "\tPRERELEASE_SUFFIX: ${suffix}" echo -e "\tVERBOSE: ${verbose}" +echo -e "\tGIT_CEILING_DIRECTORIES: ${GIT_CEILING_DIRECTORIES}" current_branch=$(git rev-parse --abbrev-ref HEAD) From f39824bb628f1c76fdd5c966d1441054a77ab608 Mon Sep 17 00:00:00 2001 From: Santiago Bernhardt Date: Thu, 14 Apr 2022 09:23:15 +1200 Subject: [PATCH 5/7] test runner / --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 33ab147a..a7001e6f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -14,8 +14,8 @@ tag_context=${TAG_CONTEXT:-repo} suffix=${PRERELEASE_SUFFIX:-beta} verbose=${VERBOSE:-true} verbose=${VERBOSE:-true} -# since https://github.blog/2022-04-12-git-security-vulnerability-announced/ runner uses -GIT_CEILING_DIRECTORIES='/github/workspace' +# since https://github.blog/2022-04-12-git-security-vulnerability-announced/ runner uses? +GIT_CEILING_DIRECTORIES='/' cd ${GITHUB_WORKSPACE}/${source} From 70c5dc11d5662300b8fa7fc15d3bb6c7705ab162 Mon Sep 17 00:00:00 2001 From: Santiago Bernhardt Date: Thu, 14 Apr 2022 09:35:37 +1200 Subject: [PATCH 6/7] node 12 alpine 3.14 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index c99a5164..cca30e95 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM alpine:3.14 +FROM node:12-alpine3.14 LABEL "repository"="https://github.com/anothrNick/github-tag-action" LABEL "homepage"="https://github.com/anothrNick/github-tag-action" LABEL "maintainer"="Nick Sjostrom" COPY entrypoint.sh /entrypoint.sh -RUN apk update && apk add bash git curl jq && apk add --update nodejs npm && npm install -g semver +RUN apk update && apk add bash git curl jq && npm install -g semver ENTRYPOINT ["/entrypoint.sh"] From 64fca1c5b902c02eab9b2f31839d95358d03d251 Mon Sep 17 00:00:00 2001 From: Santiago Bernhardt Date: Thu, 14 Apr 2022 09:38:29 +1200 Subject: [PATCH 7/7] testing 3.15 --- Dockerfile | 2 +- entrypoint.sh | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index cca30e95..715d4012 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:12-alpine3.14 +FROM node:12-alpine3.15 LABEL "repository"="https://github.com/anothrNick/github-tag-action" LABEL "homepage"="https://github.com/anothrNick/github-tag-action" LABEL "maintainer"="Nick Sjostrom" diff --git a/entrypoint.sh b/entrypoint.sh index a7001e6f..81f80650 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -15,7 +15,7 @@ suffix=${PRERELEASE_SUFFIX:-beta} verbose=${VERBOSE:-true} verbose=${VERBOSE:-true} # since https://github.blog/2022-04-12-git-security-vulnerability-announced/ runner uses? -GIT_CEILING_DIRECTORIES='/' +git config --global --add safe.directory /github/workspace cd ${GITHUB_WORKSPACE}/${source} @@ -30,7 +30,6 @@ echo -e "\tINITIAL_VERSION: ${initial_version}" echo -e "\tTAG_CONTEXT: ${tag_context}" echo -e "\tPRERELEASE_SUFFIX: ${suffix}" echo -e "\tVERBOSE: ${verbose}" -echo -e "\tGIT_CEILING_DIRECTORIES: ${GIT_CEILING_DIRECTORIES}" current_branch=$(git rev-parse --abbrev-ref HEAD)