We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drone secrets can contain characters such as hyphens, which are not allowed for secrets in Harness CI.
For example, this is a valid Drone pipeline:
kind: pipeline type: docker name: default steps: - name: slack image: plugins/slack settings: webhook: from_secret: MY-SLACK-WEBHOOK
In Harness CI, we must translate invalid characters to a valid character, such as _.
_
The above yaml should translate to this v1 Harness CI yaml:
options: {} stages: - name: default spec: clone: {} runtime: spec: {} type: machine steps: - name: slack spec: image: plugins/slack with: webhook: <+ secrets.getValue("MY_SLACK_WEBHOOK") > type: plugin type: ci
We should verify what characters are valid (likely [a-zA-Z0-9_]) in Harness CI yaml, and handle converting them to a safe character (likely _).
[a-zA-Z0-9_]
When this work is done, we will need a follow-up in harness-migrate to do the same conversion when reading secrets from the Drone database.
harness-migrate
The text was updated successfully, but these errors were encountered:
Fixe in #108
Sorry, something went wrong.
eoinmcafee00
No branches or pull requests
Drone secrets can contain characters such as hyphens, which are not allowed for secrets in Harness CI.
For example, this is a valid Drone pipeline:
In Harness CI, we must translate invalid characters to a valid character, such as
_
.The above yaml should translate to this v1 Harness CI yaml:
We should verify what characters are valid (likely
[a-zA-Z0-9_]
) in Harness CI yaml, and handle converting them to a safe character (likely_
).When this work is done, we will need a follow-up in
harness-migrate
to do the same conversion when reading secrets from the Drone database.The text was updated successfully, but these errors were encountered: