-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from snyk/feat/bitbucket_server_support
feat: add support for bitbucket server
- Loading branch information
Showing
10 changed files
with
142 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# your unique broker identifier | ||
BROKER_TOKEN= | ||
|
||
# your personal username to your bitbucket server account | ||
BITBUCKET_USERNAME= | ||
|
||
# your personal password to your bitbucket server account | ||
BITBUCKET_PASSWORD= | ||
|
||
# the host where your Bitbucket Server is running, excluding scheme. | ||
# for bitbucket.yourdomain.com | ||
# this should be "bitbucket.yourdomain.com" | ||
BITBUCKET= | ||
|
||
# the url that the Bitbucket server API should be accessed at. | ||
# for bitbucket.yourdomain.com this should be | ||
# changed to "bitbucket.yourdomain.com/rest/api/1.0" | ||
BITBUCKET_API=$BITBUCKET/rest/api/1.0 | ||
|
||
# the url of your broker client (including scheme and port) | ||
# BROKER_CLIENT_URL= | ||
|
||
# The URL of the Snyk broker server | ||
BROKER_SERVER_URL=https://broker.snyk.io | ||
|
||
# the fine detail accept rules that allow Snyk to make API requests to your | ||
# bitbucket server instance | ||
ACCEPT=accept.json |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"private": | ||
[ | ||
{ | ||
"//": "list the user's projects", | ||
"method": "GET", | ||
"path": "/projects", | ||
"origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET_API}" | ||
}, | ||
{ | ||
"//": "list the user's repos", | ||
"method": "GET", | ||
"path": "/repos", | ||
"origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET_API}" | ||
}, | ||
{ | ||
"//": "used to determine the full dependency tree", | ||
"method": "GET", | ||
"path": "/projects/:project/repos/:repo/browse*/package.json", | ||
"origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET_API}" | ||
}, | ||
{ | ||
"//": "used to determine the full dependency tree", | ||
"method": "GET", | ||
"path": "/projects/:project/repos/:repo/browse*/Gemfile.lock", | ||
"origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET_API}" | ||
}, | ||
{ | ||
"//": "used to determine the full dependency tree", | ||
"method": "GET", | ||
"path": "/projects/:project/repos/:repo/browse*/Gemfile", | ||
"origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET_API}" | ||
}, | ||
{ | ||
"//": "used to determine the full dependency tree", | ||
"method": "GET", | ||
"path": "/projects/:project/repos/:repo/browse*/pom.xml", | ||
"origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET_API}" | ||
}, | ||
{ | ||
"//": "used to check if there's any ignore rules or existing patches", | ||
"method": "GET", | ||
"path": "/projects/:project/repos/:repo/browse/.snyk", | ||
"origin": "https://${BITBUCKET_USERNAME}:${BITBUCKET_PASSWORD}@${BITBUCKET_API}" | ||
} | ||
] | ||
} |
File renamed without changes.
File renamed without changes.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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