Skip to content

Commit

Permalink
Capture cargo and rust env variables
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
  • Loading branch information
prabhu committed May 20, 2024
1 parent 0f4111e commit c1ba4d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,10 @@ const addFormulationSection = (options) => {
let environmentVars = [{ name: "GIT_BRANCH", value: gitBranch }];
for (const aevar of Object.keys(process.env)) {
if (
(aevar.startsWith("GIT") || aevar.startsWith("CI_")) &&
(aevar.startsWith("GIT") ||
aevar.startsWith("CI_") ||
aevar.startsWith("CARGO") ||
aevar.startsWith("RUST")) &&
!aevar.toLowerCase().includes("key") &&
!aevar.toLowerCase().includes("token") &&
!aevar.toLowerCase().includes("pass") &&
Expand Down
2 changes: 1 addition & 1 deletion types/index.d.ts.map

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

0 comments on commit c1ba4d8

Please sign in to comment.