Skip to content

Commit

Permalink
Add GITHUB_TOKEN ARG to the Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
sarg3nt committed Oct 30, 2024
1 parent 59ad38c commit 63d3273
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
with:
build-args: GITHUB_API_TOKEN=${{ secrets.GITHUB_TOKEN }}
build-args: GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
push: false
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}

Expand Down
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ LABEL org.opencontainers.image.source=https://github.com/sarg3nt/go-dev-containe

ENV TZ='America/Los_Angeles'

# Token for talking to the Github API for mise and our custom installs.
ARG GITHUB_TOKEN=""
ENV GITHUB_API_TOKEN=$GITHUB_TOKEN

# What user will be created in the dev container and will we run under.
# Reccomend not changing this.
ENV USERNAME="vscode"
Expand Down

0 comments on commit 63d3273

Please sign in to comment.