Skip to content

Commit

Permalink
Merge pull request #748 from snyk/fix/APRSK-232-bitbucket-catalog-info
Browse files Browse the repository at this point in the history
feat: add apprisk catalog-info.yaml accept
  • Loading branch information
aarlaud authored Apr 28, 2024
2 parents 3834320 + 5756ffb commit e44f584
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions defaultFilters/apprisk/bitbucket-server.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,17 @@
"password": "${BITBUCKET_PASSWORD}"
}
},
{
"//": "used to retrieve organization context from catalog-info.yaml",
"method": "GET",
"path": "/projects/:projectKey/repos/:repo/raw/catalog-info.yaml",
"origin": "https://${BITBUCKET_API}",
"auth": {
"scheme": "basic",
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
},
{
"//": "list commit for a given repo",
"method": "GET",
Expand Down
11 changes: 11 additions & 0 deletions test/unit/__snapshots__/runtime-rules-hotloading.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1703,6 +1703,17 @@ Object {
"origin": "https://\${BITBUCKET_API}",
"path": "/projects/:projectKey/repos/:repo/commits/:commit/diff",
},
Object {
"//": "used to retrieve organization context from catalog-info.yaml",
"auth": Object {
"password": "\${BITBUCKET_PASSWORD}",
"scheme": "basic",
"username": "\${BITBUCKET_USERNAME}",
},
"method": "GET",
"origin": "https://\${BITBUCKET_API}",
"path": "/projects/:projectKey/repos/:repo/raw/catalog-info.yaml",
},
Object {
"//": "list commit for a given repo",
"auth": Object {
Expand Down

0 comments on commit e44f584

Please sign in to comment.