Skip to content

Commit

Permalink
ci: plug leak of Github secret
Browse files Browse the repository at this point in the history
  • Loading branch information
danielattilasimon committed Apr 12, 2024
1 parent 9ae4912 commit 4eddda5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion contracts/utils/deploy-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,13 @@ Deploying Liquity contracts with the following settings:
`broadcast/DeployLiquity2.s.sol/${options.chainId}/run-latest.json`,
);

// XXX hotfix: we were leaking Github secrets in "deployer"
// TODO: check if "deployer" is a private key, and calculate its address and use it instead?
const { deployer, ...safeOptions } = options;

// write env file
await fs.writeJson("deployment-context-latest.json", {
options,
options: safeOptions,
deployedContracts: Object.fromEntries(deployedContracts),
});

Expand Down
3 changes: 2 additions & 1 deletion contracts/utils/deployment-artifacts-to-app-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const ZAddress = z.string().regex(/^0x[0-9a-fA-F]{40}$/);
const ZDeploymentContext = z.object({
options: z.object({
chainId: z.number(),
deployer: z.string(), // can be an address or a private key
// XXX hotfix: we were leaking Github secrets in "deployer"
// deployer: z.string(), // can be an address or a private key
help: z.boolean(),
openDemoTroves: z.boolean(),
rpcUrl: z.string(),
Expand Down

0 comments on commit 4eddda5

Please sign in to comment.