Summary
In ngx_mruby, the mruby extension module for nginx that I publish, the AI agent added a setting that keeps actions/checkout from leaving its token behind. In the test workflow as of 2026-10-19, all 19 jobs that have a checkout succeeded. What this success shows extends only to the token not being needed on the branches that PR CI passed through.
There are two grounds for this. The 19 jobs succeeded with persist-credentials, the input that decides whether to leave the token, set to false. The 2 CI runs on the PR that added this setting did not execute the fetch in the push branch.
There are also two areas this conclusion does not reach. The setting does not apply to jobs that use the token left by the checkout for a push or for a fetch from a private repository. The targets of the fetch tried in this article do not include a tip commit that disappeared through a force push.
What you can take away
Developers who add zizmor to the checks on their workflows can get the following four things from this article.
- You can put the commands that connect to a remote into a table for each job, and judge whether the checkout's token is needed.
- You can read zizmor's counts separately by whether a configuration file and
--no-ignoresare used. - You can learn, through a fetch that runs only on push, an example of a branch that PR CI does not execute.
- In a workflow where changes are merged into another branch, you can check the reasons for ignore rules against the jobs on the destination branch.
This article rests on the PR records, workflows, and list of CI jobs of one public repository, official documentation and source code, third-party reports and guidelines, and one fetch tried on 2026-11-03.
The 19 jobs set not to leave the token, and what CI success shows
Even if 19 jobs succeed with actions/checkout set not to leave its token, what can be confirmed is limited to the branches that PR CI passed through. On 2026-10-19, the AI agent created a first PR that added three checks, and in a follow-up PR it put this setting into ngx_mruby's test workflow.
The value of actions/checkout's persist-credentials input decides whether the token is left in a form usable through the local git configuration. According to the actions/checkout README, the default value is true.
zizmor, a static analysis tool for GitHub Actions, reports settings that store git credentials on the local file system through the artipacked audit. In the follow-up PR, the AI agent set persist-credentials: false on the 3 checkouts in the test workflow. From zizmor's configuration file, it removed a whole-file ignore rule that specifies only a file name.
The CI for the follow-up PR ran twice, and 20 jobs succeeded both times. ci-ok, which collects the results of the other jobs, has no checkout step, so the jobs that ran without leaving the token number 19. The following table shows the breakdown of the 20.
| Job | Count | Checkout |
|---|---|---|
| Job that checks added files | 1 | Yes |
| Build and test jobs | 17 | Yes |
| Job that compares performance | 1 | Yes |
| ci-ok | 1 | No |
The fetch in the job that checks added files exists only in the branch for a push to a branch when the previous tip commit is not available locally. PR CI goes through the pull_request branch, so neither of the 2 CI runs executed this fetch.
How each job uses the token
The 3 kinds of jobs in ngx_mruby's test workflow do not use the token left by the checkout for git operations. The AI agent reached this judgment by examining the commands that connect to a remote in each job. Another AI agent, which did not write the PR, confirmed this judgment by grepping for git, curl, gh, and so on, down to the scripts the jobs call. The following table shows the commands examined and whether the token is needed.
| Job | Commands that connect to a remote | Checkout token | Why it is not needed |
|---|---|---|---|
| Job that checks added files | A fetch that retrieves the previous tip commit on a non-fast-forward push | Not needed. This branch was not executed in PR CI | The AI agent judged that the target is a public repository |
| Build and test jobs | wget and curl that retrieve the nginx and OpenSSL sources, and a clone by mruby's rake that retrieves gems from public GitHub repositories into a separate directory | Not needed | There is no git command that uses the token against this repository |
| Job that compares performance | gh | Not needed | gh reads the step's GH_TOKEN environment variable. git diff and git archive read the 2 commits available locally through fetch-depth: 2 |
zizmor counts by option
zizmor's counts changed because the setting not to leave the token was added, not because the ignore rule was removed. In runs that use the configuration file, the reports were 0 both before and after the follow-up PR, and ignored went from 4 to 1. This is because adding the setting stopped the findings the rule had been excluding from appearing. In runs with --no-config, the reports went from 3 to 0.
The findings zizmor excludes from its reports fall into two categories. In zizmor, a persona expressing how strict the audit is gets chosen at run time, and each finding also has its own persona. Findings meant for a persona lower than the run-time persona are called suppressed. Of the findings that remain after that, those with an ignore specification and those whose severity or confidence falls below the lower limit are called ignored. The definitions of the two categories are not in the official documentation, and the source is zizmor's source code.
The following table shows the values from auditing .github with zizmor 1.31.1, split into before and after the follow-up PR. --no-config skips the configuration file, and --no-ignores disables the ignore rules.
| zizmor options | Reports before | Ignored before | Suppressed before | Exit code before | Reports after | Ignored after | Suppressed after | Exit code after |
|---|---|---|---|---|---|---|---|---|
| No options, using the configuration file | 0 | 4 | 9 | 0 | 0 | 1 | 9 | 0 |
--no-config | 3 | 1 | 9 | 12 | 0 | 1 | 9 | 0 |
--no-ignores and --no-config | 4 | Not recorded | 9 | 12 | 1 | Not recorded | 9 | 12 |
The 1 finding left in the run with both options is a finding in the mirror workflow. According to zizmor's Usage page, exit code 12 means that the highest severity among the reports is low.
The fetch on push that PR CI does not go through
What could be confirmed about the fetch in the job that checks added files working without a token extends only to commits reachable from the maintenance branch. The AI agent tried it outside CI, with the token removed from the environment variables and without reading git's global and system configuration. The target was one commit in the public repository, and a fetch specifying the SHA on 2026-11-03 succeeded with exit code 0. The actual branch retrieves the tip commit from before the push when that commit is not available locally. A tip commit that disappeared through a force push cannot be reached from the maintenance branch and is outside the fetch that was tried.
A reason for an ignore rule that did not hold on the destination branch
The whole-file ignore rule written in zizmor's configuration file came with the reason that no job uploads artifacts. This reason did not hold on the development branch. In ngx_mruby, changes on the maintenance branch reach the development branch through merges.
In the first PR, the AI agent wrote this rule for the findings in the test workflow. The AI agent that reviewed the first PR checked the rule's reason against the jobs on the development branch and pointed out that it did not apply. On the development branch, a long-running load test job and the job that compares performance upload logs and measurement results. The upload paths do not include .git/config, so this AI agent judged that the ignore itself was acceptable.
The Unit 42 report covers cases in which the whole repository was put into an artifact, which exposed even the token left in .git. The uploads in this case do not include the whole repository. Since v6, actions/checkout stores the token in a separate file under $RUNNER_TEMP, and v7.0.1 in this case does the same.
According to zizmor's Configuration page, the rule format is filename.yml[:line[:column]], so a line can also be specified. The reviewing AI agent judged that with a rule specifying a line number, the zizmor run after the merge would fail. This is because if a line on the maintenance branch is specified, 2 other findings on the development branch remain in the report. The Exasol Python Toolbox guideline recommends neither kind of rule in the configuration file, and instead recommends inline ignore comments with an explanation for findings that are understood.
The confirmation steps, and jobs they do not apply to
In this case, whether a job uses the token left by actions/checkout was confirmed with the following four steps.
- Run zizmor with
--no-config, which does not read the configuration file, and count the artipacked findings. - Grep the steps after each job's checkout, and the scripts they call, for
git,curl, andgh, and make a table of commands. git inside actions called withuses, and git run internally by build tools such as mruby's rake, do not show up in this grep. - Set
persist-credentials: falseon the checkouts that do not need the token, and run CI. - Check the remaining findings with a zizmor run that uses
--no-ignores.
The setting does not apply to jobs that use the token left by the checkout for a push or for a fetch from a private repository. ngx_mruby's mirror workflow is such a case, so the AI agent wrote an inline ignore comment with the reason attached. According to the description of the artipacked audit, for jobs whose git operations need credentials, it is enough to specify persist-credentials: true explicitly.
Materials I referred to
The materials referred to in the body are listed below.
- zizmor Audit Rules, artipacked: https://docs.zizmor.sh/audits/#artipacked
- zizmor Usage: https://docs.zizmor.sh/usage/
- actions/checkout README: https://github.com/actions/checkout/blob/main/README.md
- zizmor Configuration: https://docs.zizmor.sh/configuration/
- FindingRegistry in zizmor's source code: https://github.com/zizmorcore/zizmor/blob/main/crates/zizmor/src/registry.rs
- Unit 42, ArtiPACKED: Hacking Giants Through a Race Condition in GitHub Actions Artifacts: https://unit42.paloaltonetworks.com/github-repo-artifacts-leak-tokens/
- Exasol Python Toolbox, Handling Zizmor Findings: https://exasol.github.io/python-toolbox/main/user_guide/troubleshooting/handle_zizmor_findings.html
Originally published at The Future of Humans, AI, and the Web, a site where my research and development is recorded and analyzed by a human and an AI.