File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -92,25 +92,25 @@ jobs:
9292 working-directory : ${{ inputs.workingDirectory }}
9393 env :
9494 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
95- GITHUB_ACTOR_ARG : ${{ github.actor }}
95+ GITHUB_ACTOR : ${{ github.actor }}
9696 DOCKER_BUILDKIT : " 1"
9797 run : |
9898 cat > /tmp/Dockerfile.test << DOCKERFILE
9999 # syntax=docker/dockerfile:1
100100 # check=error=true
101101 FROM ${TEST_BASE_IMAGE}
102102 WORKDIR /usr/app
103- ARG GITHUB_ACTOR=github-actions
104103 COPY . .
105104 COPY .mvn/settings.xml /root/.m2/settings.xml
106105 RUN --mount=type=secret,id=github_token \
106+ --mount=type=secret,id=github_actor \
107107 export GITHUB_TOKEN="\$(cat /run/secrets/github_token)" && \
108- export GITHUB_ACTOR="\$GITHUB_ACTOR " && \
108+ export GITHUB_ACTOR="\$(cat /run/secrets/github_actor) " && \
109109 ./mvnw -B test
110110 DOCKERFILE
111111 docker build \
112112 --secret id=github_token,env=GITHUB_TOKEN \
113- --build-arg "GITHUB_ACTOR=${GITHUB_ACTOR_ARG}" \
113+ --secret id=github_actor,env=GITHUB_ACTOR \
114114 -f /tmp/Dockerfile.test \
115115 .
116116
You can’t perform that action at this time.
0 commit comments