Answers: <p>It's a silly check that fouls <a href="https://github.com/actions/runner/blob/c46dac6736deae8ac151001a3fece8057eb7325b/src/Sdk/Common/Common/Utility/SecretUtility.cs#L228C50-L229C1" rel="nofollow noreferrer"><code>SecretUtility.cs</code></a> which <a href="https://github.com/actions/runner/blob/c46dac6736deae8ac151001a3fece8057eb7325b/src/Sdk/Common/Common/Utility/SecretUtility.cs#L228" rel="nofollow noreferrer">blacklists <code>PWD=</code></a> and removes it subsequently in <code>ScrubTraditionalSecrets</code>.</p>
  
Answers: CC BY-SA 4.0
Answers: 2024-11-25T02:01:10.070Z
Answers: 2024-11-25T02:01:10.070Z
Answers: Evan Carroll
Body: <p>When I dump the environmental with a job that executes <code>env</code>, I see</p>
  <pre class="lang-none prettyprint-override"><code>BOOTSTRAP_HASKELL_NONINTERACTIVE=1
  ***
  PIPX_BIN_DIR=/opt/pipx_bin
  </code></pre>
  <p>That <code>***</code> is <code>PWD=/home/runner/work/ec-test-repo/ec-test-repo</code> why would GitHub block that out?</p>
  
Tags: <github-actions>
Title: Why does GitHub Actions have asterisks *** in an ENV dump?
UserDisplayName: Evan Carroll
ThreadText: # Why does GitHub Actions have asterisks *** in an ENV dump?
  
  (Asked by: username_0 on 2024-11-25)
  
  When I dump the environmental with a job that executes `env`, I see
  
  ```none
  BOOTSTRAP_HASKELL_NONINTERACTIVE=1
  ***
  PIPX_BIN_DIR=/opt/pipx_bin
  
  ```
  
  That `***` is `PWD=/home/runner/work/ec-test-repo/ec-test-repo` why would GitHub block that out?
  
  **Tags:** github-actions
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2024-11-25. Score: 0 | Accepted answer
  
  It's a silly check that fouls [`SecretUtility.cs`](https://github.com/actions/runner/blob/c46dac6736deae8ac151001a3fece8057eb7325b/src/Sdk/Common/Common/Utility/SecretUtility.cs#L228C50-L229C1) which [blacklists `PWD=`](https://github.com/actions/runner/blob/c46dac6736deae8ac151001a3fece8057eb7325b/src/Sdk/Common/Common/Utility/SecretUtility.cs#L228) and removes it subsequently in `ScrubTraditionalSecrets`.
  
  
  ---
  
  