Commit c8b76fc
authored
feat: GITHUB_TOKEN as build secret (IN-3193) (#363)
### TL;DR
Added GitHub token as a build secret to the track update script.
### What changed?
Added a new `BUILD_SECRETS` array to the `update_track.sh` script that includes the `GITHUB_TOKEN` as an environment variable secret. This secret is now passed to the `docker buildx build` command. Leaving the build arg in this phase as we move to deprecate it.
### Why make this change?
This change allows the Docker build process to securely access GitHub resources that require authentication, such as private repositories or packages, without exposing the token in the build arguments or image layers. Using the `--secret` flag ensures the token is only available during build time and not persisted in the final image.1 parent 032bf48 commit c8b76fc
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
163 | 167 | | |
164 | 168 | | |
165 | 169 | | |
| |||
169 | 173 | | |
170 | 174 | | |
171 | 175 | | |
| 176 | + | |
172 | 177 | | |
173 | 178 | | |
174 | 179 | | |
| |||
0 commit comments