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

fix: correct workflow triggers and writable permissions #32

Merged
merged 2 commits into from
Mar 1, 2023

Conversation

gardar
Copy link
Member

@gardar gardar commented Mar 1, 2023

#29 and #30 didn't quite do the trick, this adds the required writable permissions to pull_request_target and also fixes triggers for workflows that got skipped after moving from pull_request to pull_request_target

Didn't catch these permission errors before since they were tested in my fork where I have write permissions, but now it's been tested in a separate fork where I gave myself restricted permissions.

Signed-off-by: gardar <gardar@users.noreply.github.com>
@gardar
Copy link
Member Author

gardar commented Mar 1, 2023

The CI fails since pull_request_target uses the workflow from the main branch. It won't be fixed until these changes are merged into main.

Signed-off-by: gardar <gardar@users.noreply.github.com>
@gardar gardar requested a review from SuperQ March 1, 2023 22:15
Copy link
Contributor

@SuperQ SuperQ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SuperQ SuperQ merged commit 0c7854f into prometheus-community:main Mar 1, 2023
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