Skip to content

Commit 876158f

Browse files
committed
feat: add Cloud Config support to the accept.json.sample
1 parent ced1da2 commit 876158f

File tree

4 files changed

+174
-0
lines changed

4 files changed

+174
-0
lines changed

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

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,72 @@
634634
"password": "${BITBUCKET_PASSWORD}"
635635
}
636636
},
637+
{
638+
"//": "used to determine Cloud Config issues",
639+
"method": "GET",
640+
"path": "/projects/:project/repos/:repo/browse*/*.yaml",
641+
"origin": "https://${BITBUCKET_API}",
642+
"auth": {
643+
"scheme": "basic",
644+
"username": "${BITBUCKET_USERNAME}",
645+
"password": "${BITBUCKET_PASSWORD}"
646+
}
647+
},
648+
{
649+
"//": "used to determine Cloud Config issues",
650+
"method": "GET",
651+
"path": "/projects/:project/repos/:repo/browse*%2F*.yaml",
652+
"origin": "https://${BITBUCKET_API}",
653+
"auth": {
654+
"scheme": "basic",
655+
"username": "${BITBUCKET_USERNAME}",
656+
"password": "${BITBUCKET_PASSWORD}"
657+
}
658+
},
659+
{
660+
"//": "used to determine Cloud Config issues",
661+
"method": "GET",
662+
"path": "/projects/:project/repos/:repo/browse*/*.yml",
663+
"origin": "https://${BITBUCKET_API}",
664+
"auth": {
665+
"scheme": "basic",
666+
"username": "${BITBUCKET_USERNAME}",
667+
"password": "${BITBUCKET_PASSWORD}"
668+
}
669+
},
670+
{
671+
"//": "used to determine Cloud Config issues",
672+
"method": "GET",
673+
"path": "/projects/:project/repos/:repo/browse*%2F*.yml",
674+
"origin": "https://${BITBUCKET_API}",
675+
"auth": {
676+
"scheme": "basic",
677+
"username": "${BITBUCKET_USERNAME}",
678+
"password": "${BITBUCKET_PASSWORD}"
679+
}
680+
},
681+
{
682+
"//": "used to determine Cloud Config issues",
683+
"method": "GET",
684+
"path": "/projects/:project/repos/:repo/browse*/*.json",
685+
"origin": "https://${BITBUCKET_API}",
686+
"auth": {
687+
"scheme": "basic",
688+
"username": "${BITBUCKET_USERNAME}",
689+
"password": "${BITBUCKET_PASSWORD}"
690+
}
691+
},
692+
{
693+
"//": "used to determine Cloud Config issues",
694+
"method": "GET",
695+
"path": "/projects/:project/repos/:repo/browse*%2F*.json",
696+
"origin": "https://${BITBUCKET_API}",
697+
"auth": {
698+
"scheme": "basic",
699+
"username": "${BITBUCKET_USERNAME}",
700+
"password": "${BITBUCKET_PASSWORD}"
701+
}
702+
},
637703
{
638704
"//": "used to check if there's any ignore rules or existing patches",
639705
"method": "GET",

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,42 @@
959959
"path": "/:name/:repo/:path*%2FPodfile.lock",
960960
"origin": "https://${GITHUB_TOKEN}@${GITHUB_RAW}"
961961
},
962+
{
963+
"//": "used to determine Cloud Config issues",
964+
"method": "GET",
965+
"path": "/repos/:name/:repo/contents/:path*/*.yaml",
966+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
967+
},
968+
{
969+
"//": "used to determine Cloud Config issues",
970+
"method": "GET",
971+
"path": "/repos/:name/:repo/contents/:path*%2F*.yaml",
972+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
973+
},
974+
{
975+
"//": "used to determine Cloud Config issues",
976+
"method": "GET",
977+
"path": "/repos/:name/:repo/contents/:path*/*.yml",
978+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
979+
},
980+
{
981+
"//": "used to determine Cloud Config issues",
982+
"method": "GET",
983+
"path": "/repos/:name/:repo/contents/:path*%2F*.yml",
984+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
985+
},
986+
{
987+
"//": "used to determine Cloud Config issues",
988+
"method": "GET",
989+
"path": "/repos/:name/:repo/contents/:path*/*.json",
990+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
991+
},
992+
{
993+
"//": "used to determine Cloud Config issues",
994+
"method": "GET",
995+
"path": "/repos/:name/:repo/contents/:path*%2F*.json",
996+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
997+
},
962998
{
963999
"//": "used to check if there's any ignore rules or existing patches",
9641000
"method": "GET",

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,42 @@
659659
"path": "/repos/:name/:repo/contents/:path*%2F.snyk",
660660
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
661661
},
662+
{
663+
"//": "used to determine Cloud Config issues",
664+
"method": "GET",
665+
"path": "/repos/:name/:repo/contents/:path*/*.yaml",
666+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
667+
},
668+
{
669+
"//": "used to determine Cloud Config issues",
670+
"method": "GET",
671+
"path": "/repos/:name/:repo/contents/:path*%2F*.yaml",
672+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
673+
},
674+
{
675+
"//": "used to determine Cloud Config issues",
676+
"method": "GET",
677+
"path": "/repos/:name/:repo/contents/:path*/*.yml",
678+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
679+
},
680+
{
681+
"//": "used to determine Cloud Config issues",
682+
"method": "GET",
683+
"path": "/repos/:name/:repo/contents/:path*%2F*.yml",
684+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
685+
},
686+
{
687+
"//": "used to determine Cloud Config issues",
688+
"method": "GET",
689+
"path": "/repos/:name/:repo/contents/:path*/*.json",
690+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
691+
},
692+
{
693+
"//": "used to determine Cloud Config issues",
694+
"method": "GET",
695+
"path": "/repos/:name/:repo/contents/:path*%2F*.json",
696+
"origin": "https://${GITHUB_TOKEN}@${GITHUB_API}"
697+
},
662698
{
663699
"//": "get details of the repo",
664700
"method": "GET",

client-templates/gitlab/accept.json.sample

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,42 @@
361361
"path": "/api/v4/projects/:project/repository/files*%2FPodfile.lock",
362362
"origin": "https://${GITLAB}"
363363
},
364+
{
365+
"//": "used to determine Cloud Config issues",
366+
"method": "GET",
367+
"path": "/api/v4/projects/:project/repository/files*/*.yaml",
368+
"origin": "https://${GITLAB}"
369+
},
370+
{
371+
"//": "used to determine Cloud Config issues",
372+
"method": "GET",
373+
"path": "/api/v4/projects/:project/repository/files*%2F*.yaml",
374+
"origin": "https://${GITLAB}"
375+
},
376+
{
377+
"//": "used to determine Cloud Config issues",
378+
"method": "GET",
379+
"path": "/api/v4/projects/:project/repository/files*/*.yml",
380+
"origin": "https://${GITLAB}"
381+
},
382+
{
383+
"//": "used to determine Cloud Config issues",
384+
"method": "GET",
385+
"path": "/api/v4/projects/:project/repository/files*%2F*.yml",
386+
"origin": "https://${GITLAB}"
387+
},
388+
{
389+
"//": "used to determine Cloud Config issues",
390+
"method": "GET",
391+
"path": "/api/v4/projects/:project/repository/files*/*.json",
392+
"origin": "https://${GITLAB}"
393+
},
394+
{
395+
"//": "used to determine Cloud Config issues",
396+
"method": "GET",
397+
"path": "/api/v4/projects/:project/repository/files*%2F*.json",
398+
"origin": "https://${GITLAB}"
399+
},
364400
{
365401
"//": "used to check if there's any ignore rules or existing patches",
366402
"method": "GET",

0 commit comments

Comments
 (0)