I gave a reusable workflow a step that reads ${{ secrets.DEPLOY_TOKEN }}, called it from another workflow without passing any secret, and ran actionlint:

$ actionlint -no-color [exit 0] 

Clean. In a second pair, the called workflow declares that secret in a three-line secrets: block, and the caller again passes none:

$ actionlint -no-color .github/workflows/release.yml:10:11: secret "DEPLOY_TOKEN" is required by "./.github/workflows/deploy.yml" reusable workflow [workflow-call] [exit 1] 

Terminal recording: actionlint exits 1 when the called workflow declares its secret and exits 0 when it doesn't

That block decides whether you get any secret checking at all. I built eleven small caller and callee pairs, each in its own git repo, and ran actionlint 1.7.12 and zizmor 1.33.1 on every one. Nothing ran on GitHub. The [exit N] lines come from my test script, and I trimmed actionlint's caret lines.

Why the missing block turns checks off

The callee declares its secret like this:

 secrets: DEPLOY_TOKEN: required: true 

Without that block, actionlint assumes the workflow inherits secrets from its caller, because it can't know whether some caller uses secrets: inherit. Its docs say so. So it checks nothing on either side.

On GitHub, a secret that isn't set comes through as an empty string, per the secrets docs. Your deploy step gets DEPLOY_TOKEN="". I didn't watch that happen. It's the documented behaviour.

With the block in place, actionlint also catches a misspelled name and names the secret it expected:

.github/workflows/release.yml:14:7: secret "DEPLOY_TOKN" is not defined in "./.github/workflows/deploy.yml" reusable workflow. defined secret is "DEPLOY_TOKEN" [workflow-call] 

It flags a secret the callee reads but never declared, too. That error lands in deploy.yml, and the type list shows which secrets the callee can actually see:

.github/workflows/deploy.yml:17:30: property "slack_webhook" is not defined in object type {actions_runner_debug: string; actions_step_debug: string; deploy_token: string; github_token: string} [expression] 

secrets: inherit and remote workflows

secrets: inherit in the caller, plus toJSON(secrets) in the callee, also passed actionlint with exit 0. zizmor is the one that complains (trimmed to the headlines):

warning[overprovisioned-secrets]: excessively provisioned secrets warning[secrets-inherit]: secrets unconditionally inherited by called workflow 4 findings (1 suppressed, 1 unsafe fixes): 0 informational, 1 low, 2 medium, 0 high [exit 13] 

zizmor never checked for a missing secret in any of my cases, though. The two tools cover different gaps.

A call to a workflow in another repository, pinned to a SHA in a repo that doesn't exist, passed both:

$ zizmor --offline --no-progress --quiet . No findings to report. Good job! [exit 0] 

actionlint only checks inputs and secrets for local ./ workflows. For a central shared-workflows repo, the first real run is your test.

Two caller mistakes it does catch

The job that calls a reusable workflow can't set environment:. That belongs on the job inside the called workflow:

.github/workflows/release.yml:11:5: when a reusable workflow is called with "uses", "environment" is not available. only following keys are allowed: "name", "uses", "with", "secrets", "needs", "if", and "permissions" in job "deploy" [syntax-check] 

The key list in that message is out of date. GitHub's reusable workflow reference also allows strategy and concurrency on a calling job, and actionlint accepted both when I added them. So only the wording lags.

A workflow-level env: value passed into with: fails as well, because the env context isn't available there:

.github/workflows/release.yml:15:24: context "env" is not allowed here. available contexts are "github", "inputs", "matrix", "needs", "strategy", "vars". see https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability for more details [expression] 

Use vars or a literal instead.

The zizmor and actionlint disagreement

On every local call zizmor 1.33.1 printed a low-severity hint:

help[self-repository]: use GitHub's dedicated self-repository syntax 

GitHub added the $/ syntax in July 2026. actionlint 1.7.12 is older and rejects it:

.github/workflows/release.yml:10:11: reusable workflow call "$/.github/workflows/deploy.yml" at "uses" is not following the format "owner/repo/path/to/workflow.yml@ref" nor "./path/to/workflow.yml". see https://docs.github.com/en/actions/learn-github-actions/reusing-workflows for more details [workflow-call] [exit 1] 

I kept ./ and told zizmor to ignore that audit for the caller file only, in .github/zizmor.yml:

rules: self-repository: ignore: - release.yml 
No findings to report. Good job! (1 ignored, 1 suppressed) [exit 0] 

What I'd do

Declare every secret the callee reads under on.workflow_call.secrets, pass secrets by name instead of inherit, and add a step that fails if the token is empty. GitHub's reuse docs say required: true only checks that the caller passes the secret, not that it has a value. No linter can tell you the secret exists in the repo or environment.

The empty check is a few lines in the called workflow:

 - name: Fail fast if the token is empty env: DEPLOY_TOKEN: ${{ secrets.DEPLOY_TOKEN }} run: | if [ -z "$DEPLOY_TOKEN" ]; then echo "::error::DEPLOY_TOKEN is empty for this environment" exit 1 fi 

--min-severity=medium is the other way to quiet the self-repository hint. It still failed the secrets: inherit case with exit 13, but I prefer the config file because it hides one audit, not a whole severity level.

The full write-up, with all eleven pairs, a flowchart and the scripts to reproduce every output, is on Runbook Lab.

Disclosure: I wrote this with an AI assistant. The commands were run for real in a scratch environment and the outputs above are copied from those runs.