-
Notifications
You must be signed in to change notification settings - Fork 0
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
github: run workflows for dependabot #32
Conversation
currently, we receive two successive actions when dependabot opens a PR, first an `opened` event, then a `labeled` event. the second event cancels the first pipeline, however, we don't re-run tests when a PR is labeled except if the label is `publish-dev-test`. this fixes the issue by removing the cancel for all labels except `publish-dev-test`.
/merge |
🚂 MergeQueue: waiting for PR to be ready This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals. Use |
Co-authored-by: Nicolas Savoire <[email protected]>
/remove |
🚂 Devflow: |
This merge request was unqueued If you need support, contact us on Slack #devflow! |
@@ -0,0 +1,15 @@ | |||
name: Labeled |
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.
🟠 Code Vulnerability
No explicit permissions set for at the workflow level (...read more)
Datadog’s GitHub organization defines default permissions for the GITHUB_TOKEN
to be restricted (contents:read
, metadata:read
, and packages:read
).
Your repository may require a different setup, so consider defining permissions for each job following the least privilege principle to restrict the impact of a possible compromise.
You can find the list of all possible permissions in Workflow syntax for GitHub Actions - GitHub Docs. They can be defined at the job or the workflow level.
What does this PR do?
Currently, we receive two successive actions when dependabot opens a PR, first an
opened
event, then alabeled
event. the second event cancels the first workflow, however, we don't re-run tests when a PR is labeled except if the label ispublish-dev-test
. this fixes the issue by removing the cancel for all labels exceptpublish-dev-test
.Peer investigated with @nsavoire, 🙇
Motivation
Run tests for PRs opened by dependabot!
Additional Notes
N/A
How to test the change?
N/A