-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
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
Set github webhook secret #99
Conversation
docs/create-webhook.yaml
Outdated
@@ -114,11 +114,16 @@ spec: | |||
exit 0 | |||
fi | |||
echo "Create Webhook" | |||
option="" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit: Maybe instead of option
we can call this something more descriptive like webhooksecret
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I make the secret string mandatory so I take out the variable after all.
@@ -82,7 +82,7 @@ These are the task parms to manage the task execution | |||
This param is the github repo name (github.com/onwer/**repo**) | |||
- value: string | |||
- name: `GithubSecretName` | |||
This param is the secret name for github access token. The key **userName** must have the github user name and **accessToken** must have the github access token | |||
This param is the secret name for github access token. The key **userName** must have the github user name and **accessToken** must have the github access token. If the secret has the key **secretString**, the value is set to the `Secret` in the github webhook. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have access Token, username and secret string configurable with default values?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I will
7656b3e
to
cc06ee2
Compare
/hold |
Documentation changes will be in #100 |
/hold cancel |
Fix for #110 is in this PR, too. |
Thanks Aki! This will work with our new validation task 👍 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: akihikokuroda, ncskier The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Changes
This PR adds function to set the secret string into the github webhook in the Create-Webhook tekton task.
When the secret specified in the GithubSecretName has the "secretString" key, the value is set to the github webhook secret. This secret is used when the issue #45 is implemented.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.
Release Notes