# 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.

```sh
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.
