Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Bug: fails on selfhosted github runner because it takes / as working dir #54

@Elyytscha

Description

@Elyytscha

I'm not sure if this is an issue in general or only with selfhosted github runner, but we had the following issue:

Run quizlet/argocd-diff-action@master
Fetching apps from: https://argocd.example.com/api/v[1](https://github.com/<redacted>#step:3:1)/applications
Changed files: .github/workflows/argo-diff.yaml, base/operators/kustomization.yaml, base/operators/mongodb-atlas/kustomization.yaml, base/operators/mongodb-atlas/operator-group.yaml, base/operators/mongodb-atlas/operator-ns.yaml, base/operators/mongodb-atlas/subscription.yaml, customer/infra/operators/kustomization.yaml
Found apps: operators
Running: argocd app diff operators --local=./customer/infra/operators
stdout: 
stderr: Warning: local diff without --server-side-generate is deprecated and does not work with plugins. Server-side generation will be the default in v2.7.time="2024-09-30T[12](https://github.com/<redacted>#step:3:13):24:02Z" level=info msg="kustomize build ./customer/infra/operators --enable-helm --load-restrictor=LoadRestrictionsNone" dir=/ execID=6eeb0
time="2024-09-30T12:24:02Z" level=error msg="`kustomize build ./customer/infra/operators --enable-helm --load-restrictor=LoadRestrictionsNone` failed exit status 1: Error: must build at directory: not a valid directory: evalsymlink failure on './customer/infra/operators' : lstat /customer: no such file or directory" execID=6eeb0
time="2024-09-30T12:24:02Z" level=info msg=Trace args="[kustomize build ./customer/infra/operators --enable-helm --load-restrictor=LoadRestrictionsNone]" dir=/ operation_name="exec kustomize" time_ms=7.63694
time="2024-09-30T12:24:02Z" level=fatal msg="`kustomize build ./customer/infra/operators --enable-helm --load-restrictor=LoadRestrictionsNone` failed exit status 1: Error: must build at directory: not a valid directory: evalsymlink failure on './customer/infra/operators' : lstat /customer: no such file or directory"

what fixed it for us

const command = `app diff ${app.metadata.name} --local-repo-root=${process.cwd()} --local=${app.spec.source.path}`;

--local-repo-root=${process.cwd()} 

pr: #53

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions