Skip to content
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

[Feature] Support non pull_request event trigger #141

Open
jprinet opened this issue Sep 29, 2023 · 1 comment · May be fixed by #142
Open

[Feature] Support non pull_request event trigger #141

jprinet opened this issue Sep 29, 2023 · 1 comment · May be fixed by #142
Labels

Comments

@jprinet
Copy link

jprinet commented Sep 29, 2023

Issue

A Github workflow triggered upon PR submission (ie. with pull_request event trigger) does not have access to the repository secrets. This can be an issue if an authentication process should happen during the workflow.

An option is to trigger a second workflow with a workflow_run event which has access to secrets.

This second workflow can't however use the contributor-assistant/github-action in this context as some of the required data are only populated within a pull_request / pull_request_target context (ie. context.issue.number).

Solution

Allow to pass the pull-request number as an optional action input and use it when present

See related PR

Alternative

n/a

@jprinet
Copy link
Author

jprinet commented Oct 9, 2023

Hi @ibakshay, any chance you could give a look at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant