GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing github.com — Fix: Remove UTF-8 encoding to prevent mangling of binary secrets by matthiasfehr · Pull Request #599 · docker/actions-toolkit Conversation
Contributor
This PR removes the explicit
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
matthiasfehr
force-pushed
the
binary-secret-files
branch
from
3d670fa to
ed85272
Compare
|
There was an error while loading. Please reload this page.
I was looking at the initial implementation and it was added in https://github.com/docker/build-push-action/pull/296/files#diff-f73f5f656aeb1aac9f0e62af243004b96603175d3d897231961ab4245d7a5a50R41 I think your change is fine but I just wonder what's your use case to have a bin formatted secret to use in your Dockerfile. Do you mind to share? Also I think instead of doing both public static resolveSecret(kvp: string, file: boolean): [string, string] { const [key, value] = Build.parseSecretKvp(kvp); const secretFile = Context.tmpName({tmpdir: Context.tmpDir()}); if (file) { if (!fs.existsSync(value)) { throw new Error(`secret file ${value} not found`); } fs.copyFileSync(value, secretFile); } else { fs.writeFileSync(secretFile, value); } return [key, secretFile]; } |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I have a docker build stage in my Dockerfile where I sign the built executable, and for this I need to pass in a p12 certificate file. This works when directly passed as secret argument to docker but not with this action. I have updated the PR to use directly the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can you squash your commits? Otherwise LGTM thanks!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Signed-off-by: Matthias Fehr <[email protected]>
9de7219 to
9692462
Compare
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.