Skip to content

Commit

Permalink
fix(naming): Rename Trust Engine to System Trust (#234)
Browse files Browse the repository at this point in the history
* rename

* Update docker.ts

* update dist folder

---------

Co-authored-by: Gulom Alimov <[email protected]>
  • Loading branch information
Googlom and Gulom Alimov authored Jan 3, 2025
1 parent f01a8e3 commit f8f9ede
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
11 changes: 7 additions & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions src/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export async function startContainer (actionCfg: ActionConfiguration, ctxConfig:
...getProxyEnvVars(),
...getOrchestratorEnvVars(),
...getVaultEnvVars(),
...getTrustEngineJWT(),
...getSystemTrustToken(),
dockerImage,
'cat'
)
Expand Down Expand Up @@ -150,8 +150,11 @@ export function getProxyEnvVars (): string[] {
]
}

export function getTrustEngineJWT (): string[] {
export function getSystemTrustToken (): string[] {
return [
'--env',
'PIPER_systemTrustToken',
// PIPER_trustEngineToken is still created for compatibility with jenkins-library version from v1.383.0 to 1.414.0. Remove it in ~June 2025
'--env',
'PIPER_trustEngineToken'
]
Expand Down
10 changes: 5 additions & 5 deletions test/docker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
getOrchestratorEnvVars,
getProxyEnvVars,
getVaultEnvVars,
getTrustEngineJWT,
getSystemTrustToken,
runContainers,
startContainer,
stopContainer
Expand Down Expand Up @@ -104,7 +104,7 @@ describe('Docker', () => {
...getProxyEnvVars(),
...getOrchestratorEnvVars(),
...getVaultEnvVars(),
...getTrustEngineJWT(),
...getSystemTrustToken(),
actionConfig.dockerImage,
'cat'
]
Expand Down Expand Up @@ -133,7 +133,7 @@ describe('Docker', () => {
...getProxyEnvVars(),
...getOrchestratorEnvVars(),
...getVaultEnvVars(),
...getTrustEngineJWT(),
...getSystemTrustToken(),
actionConfig.dockerImage,
'cat'
]
Expand Down Expand Up @@ -166,7 +166,7 @@ describe('Docker', () => {
...getProxyEnvVars(),
...getOrchestratorEnvVars(),
...getVaultEnvVars(),
...getTrustEngineJWT(),
...getSystemTrustToken(),
ctxCfg.dockerImage,
'cat'
]
Expand Down Expand Up @@ -204,7 +204,7 @@ describe('Docker', () => {
...getProxyEnvVars(),
...getOrchestratorEnvVars(),
...getVaultEnvVars(),
...getTrustEngineJWT(),
...getSystemTrustToken(),
ctxCfg.dockerImage,
'cat'
]
Expand Down

0 comments on commit f8f9ede

Please sign in to comment.