Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change removes two environment variables from CI which have been used to carry credentials to publish/read packages to our GitHub Packages NuGet registry:
LBHPACKAGESTOKEN
NUGET_KEY
LBHPACKAGESTOKEN
continues to be used for local development.What is the problem we're trying to solve?
Historically we've published packages from our local machines, which requires a token to authenticate with the GitHub Packages NuGet Registry. Now we use CI to publish packages there is a GitHub-managed token we can use instead..
This change removes both
LBHPACKAGESTOKEN
andNUGET_KEY
tokens from the GitHub Actions workflow, replacing them where needed with the managedGITHUB_TOKEN
token that's automatically made available to all jobs.In order to keep the local development/management experience the same, references to
LBHPACKAGESTOKEN
have been kept as-is in the Docker and Docker Compose setup.Additional improvement to Docker/Docker Compose secrets
Docker's documentation suggests not to use build arguments to pass secrets, so this PR also updates the
Dockerfile
to use secret mounts, and the recommended way to manage secrets in docker compose.How to review this change
This change mirrors a couple we've already reviewed:
Checklist
Follow up actions after merging PR