Skip to content

Conversation

WzDTj
Copy link

@WzDTj WzDTj commented Sep 1, 2025

This pull request resolves a critical issue where the GH_TOKEN was not being correctly parsed when the application runs within a Docker container.

The previous Dockerfile used the exec form of the CMD instruction to start the application, which looked like this:

CMD ["start", "-g", "$GH_TOKEN"]

The reason this approach fails is fundamental to how Docker operates: the exec form of CMD does not run the command inside a command shell.

The value passed to the application for the -g flag was not the actual content of the GH_TOKEN variable. Instead, the application received the literal, un-expanded string $GH_TOKEN, which is not a valid token and therefore caused authentication to fail.

@WzDTj WzDTj changed the title fix: fix GH_TOKEN parsing problem in docker Fix GH_TOKEN parsing problem in docker Sep 1, 2025
@WzDTj WzDTj changed the title Fix GH_TOKEN parsing problem in docker Fix: Correctly Pass GH_TOKEN to Application in Docker Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant