Commit Graph

704 Commits

Author SHA1 Message Date
Dominik Henneke e0bfd3d448 Refactor the runDockerContainer function to a ContainerRunner interface.
Signed-off-by: Dominik Henneke <dominik.henneke@sda-se.com>
2021-05-03 14:16:28 +02:00
Fredrik Adelöw 38ca051682 The default @octokit/rest dependency was bumped to "^18.5.3".
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-05-03 11:15:22 +02:00
github-actions[bot] 44abfaada6 Version Packages 2021-04-29 13:35:03 +02:00
Tim Hansen a1783f3060 Add nebula-preview
Signed-off-by: Tim Hansen <timbonicus@gmail.com>
2021-04-27 11:07:15 -06:00
Oliver Sand 7aa4308179 Merge pull request #5427 from SDA-SE/feat/fix-guest
Fix owner references to guest user
2021-04-26 14:21:42 +02:00
github-actions[bot] 034998d537 Version Packages 2021-04-22 13:19:35 +00:00
Oliver Sand 6eaecbd81d Fix owner references to guest user
If the user guest is used as an example value of the owner field, we should make sure to specify it as user:guest instead as the default is group.

Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
2021-04-22 13:21:45 +02:00
Fredrik Adelöw 49574a8a3e Fix some spleling
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-04-22 09:51:37 +02:00
Fredrik Adelöw 2f423757d2 Merge pull request #5202 from erikxiv/fix/scaffolder-forward-token
fix: Forward user token to scaffolder taskworker for subsequent api r…
2021-04-17 20:14:47 +02:00
Erik Larsson 3f4c4a00dd avoid overusing fancy constructs
Signed-off-by: Erik Larsson <erik.larsson@schibsted.com>
2021-04-17 19:31:22 +02:00
Erik Larsson 1d2fafca72 rename identityToken to token
Signed-off-by: Erik Larsson <erik.larsson@schibsted.com>
2021-04-17 19:30:55 +02:00
github-actions[bot] 70be53c939 Version Packages 2021-04-15 15:40:08 +02:00
blam 4de6b74cc0 chore: update sample template to show how to
Signed-off-by: blam <ben@blam.sh>
2021-04-15 12:17:39 +02:00
blam 096c0d85e0 feat(scaffolder): added parseRepoUrl helper to parse to json object
Signed-off-by: blam <ben@blam.sh>
2021-04-15 12:17:39 +02:00
blam c2a685ddb1 feat(scaffolder): add support for parsing the valuues as a json object in the parameters
Signed-off-by: blam <ben@blam.sh>
2021-04-15 12:17:39 +02:00
Erik Larsson fd3b689217 Added test that secrets are not divulged
Signed-off-by: Erik Larsson <erik.larsson@schibsted.com>
2021-04-13 16:24:04 +02:00
Patrik Oldsberg 423a514c3b scaffolder-backend: fix GitHub Pull Request preparer on windows
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-04-13 14:08:20 +02:00
Erik Larsson 47c96fb539 Fix bugs, add tests
Signed-off-by: Erik Larsson <erik.larsson@schibsted.com>
2021-04-11 15:35:49 +02:00
Erik Larsson 46995e92bf Use text column type
Signed-off-by: Erik Larsson <erik.larsson@schibsted.com>
2021-04-11 10:01:52 +02:00
Erik Larsson a41a912f2d Store secrets in separate db column
Signed-off-by: Erik Larsson <erik.larsson@schibsted.com>
2021-04-09 23:34:08 +02:00
Erik Larsson 84c54474dd fix: Forward user token to scaffolder taskworker for subsequent api requests
Signed-off-by: Erik Larsson <erik.larsson@schibsted.com>
2021-04-09 23:34:07 +02:00
Patrik Oldsberg 93dc706eea Merge pull request #5271 from lancelot1337/bug/fix-for-5236
Update !url.startsWith condition in file.ts
2021-04-09 17:15:05 +02:00
Patrik Oldsberg 7abec4dbcf scaffolder-backend: fix file protocol check
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
2021-04-09 16:37:15 +02:00
James Turley 0b7fd7a9d7 Fix pull request sample template
A null reference survived an earlier implementation.

Signed-off-by: James Turley <jamesturley1905@googlemail.com>
2021-04-09 10:38:12 +01:00
lancelot b109375902 Update !url.startsWith condition in file.ts
Signed-off-by: lancelot <sudhanshusah2001@gmail.com>
2021-04-09 14:56:59 +05:30
Ben Lambert 1a3adf5ae8 Merge pull request #5257 from ntgussoni/fix/4208_bitbucket_server_requires_username
Bitbucket server requires username to be set
2021-04-09 10:09:27 +02:00
Patrik Oldsberg 89f5ecf0ef Merge pull request #5205 from anderoo/anderoo/github-permissions
allow collaborators on github creation
2021-04-08 18:02:49 +02:00
Nicolas Torres d840d30bcd Bitbucket server requires username to be set
Signed-off-by: Nicolas Torres <nicolast@backbase.com>
2021-04-08 17:40:01 +02:00
Andrew Johnson 67b9602d14 don't throw on permission errors
Signed-off-by: Andrew Johnson <ajohnson@gocardless.com>
2021-04-08 15:45:37 +01:00
Patrik Oldsberg f240b09965 Merge pull request #5153 from tragiclifestories/github-pr-publish
Create builtin action for publishing to Github PR
2021-04-08 16:10:32 +02:00
github-actions[bot] 51b6cf465d Version Packages 2021-04-08 11:32:56 +00:00
Andrew Johnson f7d71b6d9e fixup
Signed-off-by: Andrew Johnson <ajohnson@gocardless.com>
2021-04-07 12:41:53 +01:00
Andrew Johnson 97c5797f4e prettier
Signed-off-by: Andrew Johnson <ajohnson@gocardless.com>
2021-04-07 12:41:53 +01:00
Andrew Johnson 18a9669291 make lint happy
Signed-off-by: Andrew Johnson <ajohnson@gocardless.com>
2021-04-07 12:41:52 +01:00
Andrew Johnson 1d32be309b allow collaborators on github creation
Signed-off-by: Andrew Johnson <ajohnson@gocardless.com>
2021-04-07 12:41:49 +01:00
Patrik Oldsberg 0e0724cb76 Merge pull request #5013 from backjo/feat/CustomRepoDir
feat: allow custom directory to be specified for github publish action
2021-04-06 20:35:33 +02:00
github-actions[bot] 8e00ab7e63 Version Packages 2021-03-31 12:21:12 +00:00
blam 77893b657a chore: add todo for later refactor
Signed-off-by: blam <ben@blam.sh>
2021-03-31 13:58:35 +02:00
blam 94d393b414 bug: git-url-parse needs https prefix otherwise it fails to parse. Lovely.
Signed-off-by: blam <ben@blam.sh>
2021-03-31 13:51:31 +02:00
James Turley d8ffec739e Create builtin action for publishing to Github PR
Signed-off-by: James Turley <jamesturley1905@googlemail.com>
2021-03-31 10:48:21 +01:00
Ben Lambert 3403c13e3a Merge pull request #5158 from backstage/dependabot/npm_and_yarn/supertest-6.1.3
chore(deps-dev): bump supertest from 4.0.2 to 6.1.3
2021-03-29 16:45:48 +02:00
James Turley 2ab6f3ff07 Add OwnerPicker component to scaffolder
Signed-off-by: James Turley <jamesturley1905@googlemail.com>
2021-03-29 11:54:20 +01:00
dependabot[bot] 66ed65899f chore(deps-dev): bump supertest from 4.0.2 to 6.1.3
Bumps [supertest](https://github.com/visionmedia/supertest) from 4.0.2 to 6.1.3.
- [Release notes](https://github.com/visionmedia/supertest/releases)
- [Commits](https://github.com/visionmedia/supertest/compare/v4.0.2...v6.1.3)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-29 04:38:27 +00:00
github-actions[bot] 844da89090 Version Packages 2021-03-25 17:46:13 +00:00
Vinay P 673c4f7d5a Allow overriding cookiecutter's docker imageName
.. to allow running custom-built images that have
cookiecutter installed alongwith extensions, for
example.

https://cookiecutter.readthedocs.io/en/1.7.2/advanced/template_extensions.html

related to:
https://github.com/backstage/backstage/pull/4956#discussion_r596846365

Signed-off-by: Vinay P <mail@vinayvinay.com>
2021-03-25 12:12:36 +00:00
Vinay P b1dc16baa1 copyWithoutRender, extensions inputs for fetch:cookiecutter
as discussed in this GitHub issue:
https://github.com/backstage/backstage/issues/4920

Signed-off-by: Vinay P <mail@vinayvinay.com>
2021-03-25 12:12:14 +00:00
Jonah Back 8419d669c7 Add sourcePath option to all git publishers
Signed-off-by: Jonah Back <jonah@jonahback.com>
2021-03-24 21:21:00 -07:00
Jonah Back d3accca860 Sanitize input to avoid directory traversal
Signed-off-by: Jonah Back <jonah@jonahback.com>
2021-03-24 21:09:31 -07:00
Fredrik Adelöw 87313c63e2 Merge pull request #5061 from backstage/dependabot/npm_and_yarn/types/fs-extra-9.0.8
chore(deps-dev): bump @types/fs-extra from 9.0.3 to 9.0.8
2021-03-23 13:02:41 +01:00
Fredrik Adelöw 3f21e46725 fix types in tests
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
2021-03-23 09:07:35 +01:00