🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

Helmfile autodiscovery: condition and target fail with "absolute path not allowed" when scmid is set #10108

Closed

Description

@alecharp

Summary

The Helmfile autodiscovery plugin generates conditions and targets using an
absolute file path, which causes every generated pipeline to fail with:

init yaml files: absolute path "/tmp/updatecli/.../helmfile.yaml" is not allowed:
files must stay within the working directory "/tmp/updatecli/..."

Version

v0.120.1

Steps to reproduce

  1. Configure a helmfile crawler in autodiscovery with an scmid.
  2. Run updatecli diff.
  3. All helmfile-derived pipelines fail at the condition step with the above error.
    The target is skipped due to dependsOn conditions.

Root cause

In pkg/plugins/autodiscovery/helmfile/releases.go, relativeFoundChartFile
is correctly computed on line 67 but the File field on line 229 is assigned
foundHelmfile (the absolute path) instead:

// line 67 — relative path is computed
relativeFoundChartFile, err := filepath.Rel(h.rootDir, foundHelmfile)

// line 229 — absolute path is used instead
File: foundHelmfile, // ← should be relativeFoundChartFile

The ManifestName and ConditionName fields on lines 213 and 217 already use
relativeFoundChartFile correctly — File is the only field that doesn't.

Fix

File: relativeFoundChartFile,

Related

This is the same bug fixed for the updatecli autodiscovery plugin in #9759.
That PR corrected the identical pattern in
pkg/plugins/autodiscovery/updatecli/policies.go but the helmfile plugin was
not updated at the same time.

Activity

  1. added a commit that references this issue on Aug 26, 2026
    40b447c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions