1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-14 11:03:09 +02:00
sap-jenkins-library/pkg/mock
Oliver Nocon 805a8fd88f
feat(config): read config/defaults with authentication (#2975)
* feat(config):read config/defaults with authentication

This change allows to use defaults and config files from a protected GitHub repository.

The options `--customConfig` and `--defaultConfig` already allowed to provide a link to an uprotected file.

Now, by passing a value in the form `<hostname>:<token>` to parameter `gitHubTokens` (this parameter can be passed multiple times) a token can be provided for dedicated hosts.

This makes it possible to use a link like
`https://api.github.com/repos/SAP/jenkins-library/contents/resources/my-defaults.yml?ref=master`
as reference to a default file or similarly as reference to a configuration file.

* update generation to allow protected config/defaults

* fix CodeClimate issues

* update missing generations
2021-07-08 15:26:07 +02:00
..
dockerRunner_test.go Provide an ExecRunner implementation for running commands in docker (#1606) 2020-06-02 14:24:06 +02:00
dockerRunner.go Provide an ExecRunner implementation for running commands in docker (#1606) 2020-06-02 14:24:06 +02:00
example_dockerRunner_test.go Provide an ExecRunner implementation for running commands in docker (#1606) 2020-06-02 14:24:06 +02:00
fileUtils_test.go whitesourceExecuteScan: bypass UA for mta, maven, npm and yarn (#1879) 2020-09-29 12:44:31 +02:00
fileUtils.go Go Unit Tests fail due to windows/linux file separator mismatch (#2662) 2021-03-03 22:58:29 +01:00
runner.go feat(config): read config/defaults with authentication (#2975) 2021-07-08 15:26:07 +02:00