You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
${DRONE_COMMIT_SHA:0:7} resolves to 0351500 in the run where we encountered this error. Resulting Docker command:
/usr/local/bin/docker tag 0351500<the rest of the full commit hash>
registry.gitlab.com/<our repository>:119616
Testing confirms that 0351500 as octal converts to 119616 in decimal. This is reproducible with fmt.Println in Go, but the plugin should sanitize input correctly regardless and parse tags only as strings. Presently, the plugin applies an incorrect tag and breaks the rest of the pipeline, since the resulting image cannot be correctly referenced by the subsequent steps.
The text was updated successfully, but these errors were encountered:
You should always quote variables that could start with digits like commit SHAs, than it is correctly handled. AFAIK it's simply a downside of YAML parsing.
Plugin step configuration:
${DRONE_COMMIT_SHA:0:7}
resolves to0351500
in the run where we encountered this error. Resulting Docker command:Testing confirms that
0351500
as octal converts to119616
in decimal. This is reproducible withfmt.Println
in Go, but the plugin should sanitize input correctly regardless and parse tags only as strings. Presently, the plugin applies an incorrect tag and breaks the rest of the pipeline, since the resulting image cannot be correctly referenced by the subsequent steps.The text was updated successfully, but these errors were encountered: