Skip to content

Instantly share code, notes, and snippets.

@robertprast
Last active March 5, 2025 18:43
Show Gist options
  • Save robertprast/7c8b3ef7773e5bf3b3a718a0a2595723 to your computer and use it in GitHub Desktop.
Save robertprast/7c8b3ef7773e5bf3b3a718a0a2595723 to your computer and use it in GitHub Desktop.
Ocular CURLS
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