The report artifact that carried a token
A real GitHub Actions workflow uploads a report together with a synthetic token. Fix the artifact boundary and inspect the downloaded result.

The scenario
A report upload includes an unrelated file containing a fixed fake token. Publish only the intended report and verify the actual artifact.
Mission objectives
- Inspect the contents of a real Actions artifact.
- Exclude the synthetic token without dropping the report.
- Download and verify the artifact from a new workflow run.
Lab README
The report artifact that carried a token
Investigate a real GitHub Actions artifact containing a report and an unrelated fixed fake token. Never substitute a real credential.
Before you begin
You need Bash, Python 3, jq and GitHub CLI authenticated to github.com. GitHub Actions must be enabled. Hosted runs and artifact storage can consume included allowances or incur charges; check your account's limits. The lab uploads a deliberately exposed fake token. Never use an existing, shared or production repository, real credentials or secrets.
Run ./setup.sh. Create a new private repository owned by your personal
account, initialize it with a README, and enable Actions if needed. Do not add
secrets or other work. In that repository create
.github/workflows/breakfix-artifact.yml, copying the contents of workflow.yml
from this bundle. Commit it to the default branch.
Investigate
From the repository's Actions tab, select Breakfix artifact hygiene lab,
run it on the default branch, and inspect the downloaded breakfix-report
artifact. It contains an intact report and a file with a synthetic token. The
official upload action is pinned to a commit and the artifact has one-day
retention; retention timing is controlled by GitHub.
Change the workflow's upload path so only the report is uploaded; leave the report content intact. Commit the change to the default branch and run it again. The run ID is the number at the end of its GitHub Actions run URL.
export LAB_REPOSITORY="your-user/your-disposable-repository"
export LAB_RUN_ID="the-repaired-run-id"
./verify.sh
./teardown.sh
Verification downloads and inspects the actual artifact from that run; it
does not dispatch a run or change the repository. teardown.sh prints manual
deletion instructions and does not delete anything. Delete the disposable
repository in GitHub Settings when finished; this also removes its artifacts.
Get the lab
Download and inspect the installer before running it. It checks the archive's SHA-256 digest and refuses to overwrite an existing lab directory.
curl -fsSLO https://devops.download/labs/devsecops-04-actions-artifact-leak.sh less devsecops-04-actions-artifact-leak.sh
bash devsecops-04-actions-artifact-leak.sh
cd labs/devsecops-04-actions-artifact-leak
./setup.shWhen you've made your changes, run ./verify.sh. Remove lab resources with ./teardown.sh.
Need a nudge?
Hint #1
Compare the upload path with the files created in the bundle directory.
Hint #2
Upload the report itself rather than the entire directory, without changing its content.
Hint #3 · Related guide on opsbreakfix.com
Solved it?
Explore the related guide on opsbreakfix.com.
Continue to opsbreakfix.com ↗