Skip to content

Commit e4259e3

Browse files
authored
Fix issue #24434: document secret mount behavior (#24442)
Adds documentation explaining how secrets appear inside build containers when using GitHub Actions secret mounts. Changes: - Added new section "How secrets appear in the build container" explaining: - Default secret mount location (/run/secrets/<id>) - File permissions and content handling - How the env option works - Custom target paths - Includes practical examples for both environment variable and file-based secret access Fixes #24434 --------- Co-authored-by: David Karlsson <dvdksn@users.noreply.github.com>
1 parent 2e28597 commit e4259e3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

content/manuals/build/ci/github-actions/secrets.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ jobs:
5757
"github_token=${{ secrets.GITHUB_TOKEN }}"
5858
```
5959
60+
> [!NOTE]
61+
> Secrets are mounted as files in the build container.
62+
> By default, they're available at `/run/secrets/<id>`.
63+
> You can also use the `env` option to load a secret into an environment variable,
64+
> or the `target` option to customize the mount path.
65+
> For details on secret mounts, see [Build secrets](/manuals/build/building/secrets.md).
66+
6067
### Using secret files
6168

6269
The `secret-files` input lets you mount existing files as secrets in your build.

0 commit comments

Comments
 (0)