Skip to content

Commit

Permalink
Merge pull request #577 from snyk/feat/add-pipenv-files-to-agent-defa…
Browse files Browse the repository at this point in the history
…ults

feat: add pipenv files to agent default accept list
  • Loading branch information
pavel-snyk authored Sep 12, 2023
2 parents bd5f32c + c38cbdf commit 3e2b9a0
Show file tree
Hide file tree
Showing 6 changed files with 982 additions and 9 deletions.
8 changes: 8 additions & 0 deletions client-templates/azure-repos/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
"**%2Fpyproject.toml",
"**/poetry.lock",
"**%2Fpoetry.lock",
"**/Pipfile",
"**%2FPipfile",
"**/Pipfile.lock",
"**%2FPipfile.lock",
"**/build.gradle",
"**%2Fbuild.gradle",
"**/gradle.lockfile",
Expand Down Expand Up @@ -195,6 +199,10 @@
"**%2Fpyproject.toml",
"**/poetry.lock",
"**%2Fpoetry.lock",
"**/Pipfile",
"**%2FPipfile",
"**/Pipfile.lock",
"**%2FPipfile.lock",
"**/build.gradle",
"**%2Fbuild.gradle",
"**/gradle.lockfile",
Expand Down
46 changes: 45 additions & 1 deletion client-templates/bitbucket-server/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,51 @@
{
"//": "used to determine the full dependency tree",
"method": "GET",
"path": "/projects/:project/repos/:repo/browse*%poetry.lock",
"path": "/projects/:project/repos/:repo/browse*%2Fpoetry.lock",
"origin": "https://${BITBUCKET_API}",
"auth": {
"scheme": "basic",
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
"path": "/projects/:project/repos/:repo/browse*/Pipfile",
"origin": "https://${BITBUCKET_API}",
"auth": {
"scheme": "basic",
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
"path": "/projects/:project/repos/:repo/browse*%2FPipfile",
"origin": "https://${BITBUCKET_API}",
"auth": {
"scheme": "basic",
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
"path": "/projects/:project/repos/:repo/browse*/Pipfile.lock",
"origin": "https://${BITBUCKET_API}",
"auth": {
"scheme": "basic",
"username": "${BITBUCKET_USERNAME}",
"password": "${BITBUCKET_PASSWORD}"
}
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
"path": "/projects/:project/repos/:repo/browse*%2FPipfile.lock",
"origin": "https://${BITBUCKET_API}",
"auth": {
"scheme": "basic",
Expand Down
16 changes: 16 additions & 0 deletions client-templates/github-com/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,22 @@
"path": "commits.*.modified.*",
"value": "poetry.lock"
},
{
"path": "commits.*.added.*",
"value": "Pipfile"
},
{
"path": "commits.*.modified.*",
"value": "Pipfile"
},
{
"path": "commits.*.added.*",
"value": "Pipfile.lock"
},
{
"path": "commits.*.modified.*",
"value": "Pipfile.lock"
},
{
"path": "commits.*.added.*",
"value": "pom.xml"
Expand Down
16 changes: 16 additions & 0 deletions client-templates/github-enterprise/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,22 @@
"path": "commits.*.modified.*",
"value": "poetry.lock"
},
{
"path": "commits.*.added.*",
"value": "Pipfile"
},
{
"path": "commits.*.modified.*",
"value": "Pipfile"
},
{
"path": "commits.*.added.*",
"value": "Pipfile.lock"
},
{
"path": "commits.*.modified.*",
"value": "Pipfile.lock"
},
{
"path": "commits.*.added.*",
"value": "pom.xml"
Expand Down
25 changes: 25 additions & 0 deletions client-templates/gitlab/accept.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,31 @@
"path": "/api/v4/projects/:project/repository/files*%2Fpoetry.lock",
"origin": "https://${GITLAB}"
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
"path": "/api/v4/projects/:project/repository/files*/Pipfile",
"origin": "https://${GITLAB}"
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
"path": "/api/v4/projects/:project/repository/files*%2FPipfile",
"origin": "https://${GITLAB}"
},

{
"//": "used to determine the full dependency tree",
"method": "GET",
"path": "/api/v4/projects/:project/repository/files*/Pipfile.lock",
"origin": "https://${GITLAB}"
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
"path": "/api/v4/projects/:project/repository/files*%2FPipfile.lock",
"origin": "https://${GITLAB}"
},
{
"//": "used to determine the full dependency tree",
"method": "GET",
Expand Down
Loading

0 comments on commit 3e2b9a0

Please sign in to comment.