-
Notifications
You must be signed in to change notification settings - Fork 27
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
Support for Pipeline As Code Tekton #174
Conversation
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.
Epic job @SUSTAPLE117 :)
contains(pipeline.api_version, "tekton.dev") | ||
pipeline.kind == "PipelineRun" | ||
contains(pipeline.metadata.annotations["pipelinesascode.tekton.dev/on-event"], "pull_request") | ||
contains(pipeline.metadata.annotations["pipelinesascode.tekton.dev/task"], "git-clone") |
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.
But we can ship with just that, I'll file an issue #185
@@ -101,3 +101,31 @@ results contains poutine.finding(rule, pkg.purl, { | |||
exprs := azure_injections(step[attr]) | |||
count(exprs) > 0 | |||
} | |||
|
|||
patterns.pipeline_as_code_tekton contains "\\{\\{\\s*(body\\.pull_request\\.(title|user\\.email|body)|source_branch)\\s*\\}\\}" |
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.
Filed an issue #184 to add more
No description provided.