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

Support for Pipeline As Code Tekton #174

Merged
merged 5 commits into from
Aug 2, 2024
Merged

Conversation

SUSTAPLE117
Copy link
Contributor

No description provided.

@SUSTAPLE117 SUSTAPLE117 marked this pull request as ready for review August 2, 2024 14:48
@SUSTAPLE117 SUSTAPLE117 requested a review from a team as a code owner August 2, 2024 14:48
Copy link
Contributor

@fproulx-boostsecurity fproulx-boostsecurity left a 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")
Copy link
Contributor

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*\\}\\}"
Copy link
Contributor

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

@fproulx-boostsecurity fproulx-boostsecurity merged commit b8181bf into main Aug 2, 2024
8 checks passed
@fproulx-boostsecurity fproulx-boostsecurity deleted the feat/tekton branch August 2, 2024 17:02
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.

2 participants