From c9aeb4072cc9d504953508cb8e38a808e3d963e0 Mon Sep 17 00:00:00 2001 From: Stef Louwers Date: Wed, 11 Dec 2024 15:39:37 +0100 Subject: [PATCH] chore: update jsonnet --- .github/jsonnet/GIT_VERSION | 2 +- .github/jsonnet/misc.jsonnet | 5 ++--- .github/workflows/misc.yml | 1 - .github/workflows/pr.yml | 2 -- .github/workflows/publish-prod.yml | 1 - 5 files changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/jsonnet/GIT_VERSION b/.github/jsonnet/GIT_VERSION index ce6b89f..42e570e 100644 --- a/.github/jsonnet/GIT_VERSION +++ b/.github/jsonnet/GIT_VERSION @@ -1 +1 @@ -7be999c2b8bc5c5713f9bc0203caac0ace3983a7 +903df5c50ce29b0cffd1a206e1064fe087046a8f diff --git a/.github/jsonnet/misc.jsonnet b/.github/jsonnet/misc.jsonnet index 4d5308f..3ce294d 100644 --- a/.github/jsonnet/misc.jsonnet +++ b/.github/jsonnet/misc.jsonnet @@ -2,9 +2,8 @@ local base = import 'base.jsonnet'; local images = import 'images.jsonnet'; { - checkout(ifClause=null, fullClone=false, ref=null, sshKey=true):: - local with = (if fullClone then { 'fetch-depth': 0 } else {}) + (if ref != null then { ref: ref } else {}) + - (if sshKey then { 'ssh-key': '${{ secrets.VIRKO_GITHUB_SSH_KEY }}' } else {}); + checkout(ifClause=null, fullClone=false, ref=null):: + local with = (if fullClone then { 'fetch-depth': 0 } else {}) + (if ref != null then { ref: ref } else {}); base.action( 'Check out repository code', 'actions/checkout@v4', diff --git a/.github/workflows/misc.yml b/.github/workflows/misc.yml index dd5f094..f3318ef 100644 --- a/.github/workflows/misc.yml +++ b/.github/workflows/misc.yml @@ -11,7 +11,6 @@ "uses": "actions/checkout@v4" "with": "ref": "${{ github.event.pull_request.head.sha }}" - "ssh-key": "${{ secrets.VIRKO_GITHUB_SSH_KEY }}" - "name": "git safe directory" "run": "command -v git && git config --global --add safe.directory '*' || true" - "name": "remove-workflows" diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 09ad480..ee2010e 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -12,7 +12,6 @@ "uses": "actions/checkout@v4" "with": "ref": "${{ github.event.pull_request.head.sha }}" - "ssh-key": "${{ secrets.VIRKO_GITHUB_SSH_KEY }}" - "name": "git safe directory" "run": "command -v git && git config --global --add safe.directory '*' || true" - "env": @@ -44,7 +43,6 @@ "uses": "actions/checkout@v4" "with": "ref": "${{ github.event.pull_request.head.sha }}" - "ssh-key": "${{ secrets.VIRKO_GITHUB_SSH_KEY }}" - "name": "git safe directory" "run": "command -v git && git config --global --add safe.directory '*' || true" - "env": diff --git a/.github/workflows/publish-prod.yml b/.github/workflows/publish-prod.yml index 580f5be..0a480dc 100644 --- a/.github/workflows/publish-prod.yml +++ b/.github/workflows/publish-prod.yml @@ -12,7 +12,6 @@ "uses": "actions/checkout@v4" "with": "ref": "${{ github.sha }}" - "ssh-key": "${{ secrets.VIRKO_GITHUB_SSH_KEY }}" - "name": "git safe directory" "run": "command -v git && git config --global --add safe.directory '*' || true" - "env":