Skip to content

bug(ci): MegaLinter zizmor and shellcheck failures block release preflight Body: #123

Closed
3 of 3 issues completed

Description

@yvonnedevlinrh

Summary

The release workflow cannot complete because the preflight job verifies that
Standardized CI / Run linters passed on HEAD, and that check is failing on
main. This has blocked three consecutive release attempts for v0.5.4.

Preflight error:

##[error]Check 'Standardized CI / Run linters' has conclusion: failure (expected: success)

Failing linters

Two MegaLinter checks are producing blocking errors:

1. zizmor — dangerous-triggers (30 errors)

zizmor v1.25.0 flags pull_request_target as a fundamentally insecure
workflow trigger in two files:

File Line
.github/workflows/ci_dependencies.yml 8
.github/workflows/fullsend.yaml 22

Reference: https://docs.zizmor.sh/audits/#dangerous-triggers

2. shellcheck — SC2155, SC1091, SC2221, SC2222, SC2001, SC2034 (30 errors)

All errors are in .specify/scripts/bash/ files (speckit scaffolding), not
project source:

  • .specify/scripts/bash/common.sh — SC2155 (declare and assign separately), SC2221/SC2222 (overlapping case patterns)
  • .specify/scripts/bash/check-prerequisites.sh — SC1091 (can't follow source)
  • .specify/scripts/bash/create-new-feature.sh — SC2155
  • .specify/scripts/bash/setup-plan.sh — SC1091, SC2155
  • .specify/scripts/bash/setup-tasks.sh — SC1091, SC2155
  • .specify/scripts/bash/update-agent-context.sh — SC1091, SC2155

Passing linters

actionlint, golangci-lint, betterleaks, and yamllint all pass. markdownlint
has 610 warnings but they are non-blocking.

Options

zizmor

The dangerous-triggers findings are intentional — pull_request_target is
required for dependency review on forked PRs and fullsend's cross-repo
dispatch. Options:

  • Add a .zizmor.yml config to suppress dangerous-triggers on those two
    specific workflows (per-audit ignores)
  • Add ACTION_ZIZMOR_ARGUMENTS in .mega-linter.yml to pass
    --persona=ci or similar

shellcheck

The .specify/scripts/bash/ directory is third-party scaffolding from
speckit, not project-owned code. Options:

  • Add BASH_SHELLCHECK_FILTER_REGEX_EXCLUDE: '(^|/)\.specify/' to
    .mega-linter.yml to exclude speckit scripts
  • Fix the warnings in the scripts (not recommended since they're upstream-managed)

Impact

No releases can be cut from main until this is resolved (or skip_ci_checks
is used as a workaround on the release dispatch).

Sub-issues

Sub-issues

3 of 3 Issues completed
Loading 3 sub-issues

Activity

  1. added
    bug
    github_actions
    on Oct 5, 2026
  2. yvonnedevlinrh commented on Oct 6, 2026

    @yvonnedevlinrh
    ContributorAuthor

    Classified as a valid, objective bug: the failing MegaLinter check reproducibly blocks release preflight and has prevented releases from main.

    Remediation should preserve the repository's protected CI controls. For the zizmor findings, document the trust boundary and least-privilege design for each pull_request_target workflow before considering any narrowly scoped exception. For the Speckit scaffold scripts, determine whether upstream remediation is feasible; any exclusion should be limited to the vendored path, documented, and verified.

    This triage recommends splitting the security/workflow review and upstream ShellCheck resolution into separately trackable issues.

    This triage was performed by the Divisor review panel.

  3. yvonnedevlinrh commented on Oct 12, 2026

    @yvonnedevlinrh
    ContributorAuthor

    All tickets addressed, closing parent/epic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buggithub_actions

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions