Last active
March 5, 2025 18:43
-
-
Save robertprast/7c8b3ef7773e5bf3b3a718a0a2595723 to your computer and use it in GitHub Desktop.
Ocular CURLS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --request POST \ | |
--url 'http://localhost:3001/api/v1/profiles/?name=blackstontest&default=true' \ | |
--header 'Content-Type: application/json' \ | |
--header 'X-API-Token: OCLR-test' \ | |
--data '{ | |
"scanners": [ | |
{ | |
"spec": { | |
"name": "Gitleaks", | |
"image": "hello-world:latest", | |
"resources": {}, | |
"imagePullPolicy": "IfNotPresent" | |
}, | |
"condition": { | |
"sourcegraph": {} | |
} | |
} | |
] | |
}' | |
curl --request POST \ | |
--url 'http://localhost:3001/api/v1/pipelines?force=true' \ | |
--header 'Content-Type: application/json' \ | |
--header 'X-API-Token: OCLR-test' \ | |
--data '{ | |
"url": "http://github.com/robertprast/goop", | |
"commit_sha": "aac7557e484750b6a9b37edee94d3441ee3a1e39", | |
"branch": "main" | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment