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

Use pull_request_target event to trigger CI tests #373

Merged
merged 1 commit into from
Apr 15, 2021

Conversation

FedeParola
Copy link
Collaborator

In the pull_request event secrets are not accessible due to security reasons. This causes all PR tests to fail since secrets are needed to send Slack notifications and to push test docker images.
This PR replaces the pull_request event with pull_request_target. With this event the workflow is executed in the target context, meaning that it executes only the workflow already present in the master, unlike pull_request that executes the workflows contained in the PR. This allows to access secrets.
This is only a temporary solution since automatically checking out an unknown PR may still pose some security issues.

@FedeParola FedeParola requested a review from a team as a code owner April 14, 2021 06:52
Unlike pull_request, this event allows to access secrets
@frisso frisso merged commit 3ac2a7e into polycube-network:master Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants