Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

CI/CD: Mask workflow dispatch input values (#2724)

Rich Turner0161dd63c226
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml
index 6b873f5b6..1418a157f 100644
--- a/.github/workflows/ci_cd.yml
+++ b/.github/workflows/ci_cd.yml
@@ -142,7 +142,7 @@ jobs:
if secrets is not None and secrets != 'null':
for key, value in secrets.items():
- os.system(f"echo 'Outputting secret: {key}'")
+ print(f"::add-mask::{value}")
lines = len(value.split("\n"))
if lines > 1:
os.system(f"echo '{key}<<EEOOFF\n{value}\nEEOOFF' >> $GITHUB_OUTPUT")
@@ -151,6 +151,7 @@ jobs:
if inputs is not None and inputs != 'null':
for key, value in inputs.items():
+ print(f"::add-mask::{value}")
os.system(f"echo 'Outputting input: {key}'")
lines = len(value.split("\n"))
if lines > 1: