From 01b8289bd42b262ead8887ad1e0cc64c8628a060 Mon Sep 17 00:00:00 2001 From: Max Wagner Date: Wed, 11 May 2022 21:32:10 +0000 Subject: [PATCH] Hack entrypoint to work around Actions setting the working dir Since this Action is in a private repository, you must clone it manully first and then call the Action. However, since you have to clone the repository into an alternate directory, Actions will start the Docker container with the working directory being that of the calling workflow repository. Example here: https://github.com/github/ci-hello-world/runs/6396135283?check_suite_focus=true#step:5:47 The workdir is set to `--workdir /github/workspace`. This doesn't work because the go files are actually in `/`. Since the go files are in fact in `/` we can just cd to that directory. I believe this worked implicitly within this repository because the go files happened to also be found into the working directory Actions was setting. --- entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index c2d691f..8e3bf28 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,3 +1,5 @@ #!/bin/sh -l +cd / + go run cmd/oidc-debug.go -audience $1