Skip to content

Commit 43a661f

Browse files
committed
Add gha-token tool
This tool is needed to issue temporary GH tokens (for example for GH CLI) via App Credentials
1 parent bafb3a2 commit 43a661f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
# Image with Github tools
33
#
44

5+
###### Build gha-token tool
6+
FROM golang:1.24.4-alpine3.21 AS build
7+
RUN go install github.com/slawekzachcial/gha-token@1.1.0
8+
9+
###### Final image
510
FROM alpine:3.21
611

712
RUN apk add --no-cache git github-cli bash openssh curl \
@@ -11,6 +16,7 @@ RUN apk add --no-cache git github-cli bash openssh curl \
1116
&& chmod 700 /home/git/.ssh
1217

1318
ADD files/known_hosts /home/git/.ssh/known_hosts
19+
COPY --from=build /go/bin/gha-token /usr/bin/gha-token
1420

1521
WORKDIR /home/git
1622
USER 1100

0 commit comments

Comments
 (0)