You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Storage of sensitive information in GitHub Actions artifact
2
+
3
+
## Description
4
+
5
+
Sensitive information included in a GitHub Actions artifact can allow an attacker to access the sensitive information if the artifact is published.
6
+
7
+
## Recommendation
8
+
9
+
Only store information that is meant to be publicly available in a GitHub Actions artifact.
10
+
11
+
## Example
12
+
13
+
The following example uses `actions/checkout` to checkout code which stores the GITHUB_TOKEN in the \`.git/config\` file and then stores the contents of the \`.git\` repository into the artifact:
The issue has been fixed below, where the `actions/upload-artifact` uses a version (v4+) which does not include hidden files or directories into the artifact.
0 commit comments