Skip to content

Commit 146fa47

Browse files
authored
Merge pull request snyk#148 from snyk/feat/allow_fsproj_files
feat: allow .fsproj files through the broker
2 parents ef3f744 + 664e81f commit 146fa47

File tree

4 files changed

+53
-1
lines changed

4 files changed

+53
-1
lines changed

client-templates/bitbucket-server/accept.json.sample

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,17 @@
185185
"password": "${BITBUCKET_PASSWORD}"
186186
}
187187
},
188+
{
189+
"//": "used to determine the full dependency tree",
190+
"method": "GET",
191+
"path": "/projects/:project/repos/:repo/browse*/*.fsproj",
192+
"origin": "https://${BITBUCKET_API}",
193+
"auth": {
194+
"scheme": "basic",
195+
"username": "${BITBUCKET_USERNAME}",
196+
"password": "${BITBUCKET_PASSWORD}"
197+
}
198+
},
188199
{
189200
"//": "used to check if there's any ignore rules or existing patches",
190201
"method": "GET",

client-templates/github-com/accept.json.sample

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@
106106
{
107107
"path": "commits.*.modified.*",
108108
"value": "*.vbproj"
109+
},
110+
{
111+
"path": "commits.*.added.*",
112+
"value": "*.fsproj"
113+
},
114+
{
115+
"path": "commits.*.modified.*",
116+
"value": "*.fsproj"
109117
}
110118
]
111119
},
@@ -375,6 +383,18 @@
375383
"path": "/:name/:repo/:path*/*.csproj",
376384
"origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}"
377385
},
386+
{
387+
"//": "used to determine the full dependency tree",
388+
"method": "GET",
389+
"path": "/repos/:name/:repo/contents/:path*/*.fsproj",
390+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
391+
},
392+
{
393+
"//": "used to determine the full dependency tree",
394+
"method": "GET",
395+
"path": "/:name/:repo/:path*/*.fsproj",
396+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}"
397+
},
378398
{
379399
"//": "used to determine the full dependency tree",
380400
"method": "GET",

client-templates/github-enterprise/accept.json.sample

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@
106106
{
107107
"path": "commits.*.modified.*",
108108
"value": "*.vbproj"
109+
},
110+
{
111+
"path": "commits.*.added.*",
112+
"value": "*.fsproj"
113+
},
114+
{
115+
"path": "commits.*.modified.*",
116+
"value": "*.fsproj"
109117
}
110118
]
111119
},
@@ -309,6 +317,12 @@
309317
"path": "/repos/:name/:repo/contents/:path*/*.csproj",
310318
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
311319
},
320+
{
321+
"//": "used to determine the full dependency tree",
322+
"method": "GET",
323+
"path": "/repos/:name/:repo/contents/:path*/*.fsproj",
324+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
325+
},
312326
{
313327
"//": "used to determine the full dependency tree",
314328
"method": "GET",

client-templates/gitlab/accept.json.sample

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@
117117
"path": "/api/v4/projects/:project/repository/files*/*.vbproj",
118118
"origin": "https://${GITLAB}"
119119
},
120+
{
121+
"//": "used to determine the full dependency tree",
122+
"method": "GET",
123+
"path": "/api/v4/projects/:project/repository/files*/*.fsproj",
124+
"origin": "https://${GITLAB}"
125+
},
120126
{
121127
"//": "used to check if there's any ignore rules or existing patches",
122128
"method": "GET",
@@ -144,7 +150,8 @@
144150
"**/.snyk",
145151
"**/packages.config",
146152
"**/*.csproj",
147-
"**/*.vbproj"
153+
"**/*.vbproj",
154+
"**/*.fsproj"
148155
]
149156
}
150157
]

0 commit comments

Comments
 (0)