Skip to content

[BUG] Instructions got overwritten when authentication against Entra failed #1015

@OskarKlintrot

Description

@OskarKlintrot

Describe the bug

I tried apm install to see if it was possible to login via Entra (should be, but I can't get it to work). I then got this error:

Content hash mismatch for myorg/tools/github-copilot-agent-skills/.apm/instructions/code-style.instructions.md: expected sha256:56910c2b44953d355ae1f48d99e8ae383936cca446f52f1010c27ba275684a27, got
sha256:63505c9f2904cfc8c3005df1a23025e176ec9481f171b868575d91a4f3eaba6a. The downloaded content differs from the lockfile record. This may indicate a supply-chain attack. Use 'apm install --update' to accept new content and update the
lockfile.

So I run apm install --update instead and it didn't exactly go as expected:

Image

To Reproduce
Steps to reproduce the behavior:

  1. Have a private repo from Azure DevOps as dependency in apm.yaml.
  2. Don't have a PAT available in $ENV
  3. apm install --update

Expected behavior
Tell me you can't login. Or better, login.

Environment (please complete the following information):

  • OS: Windows
  • Python Version: idk
  • APM Version: 0.10.0
  • VSCode Version (if relevant):

Logs

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/content-securityUnicode scanning, Glassworm, apm audit content checks, SARIF output.area/enterpriseAir-gapped/GHE configurability, registry proxy, rulesets, adoption playbook.area/lockfileLockfile schema, per-file provenance, integrity hashes, drift detection.priority/highShips in current or next milestonestatus/acceptedDirection approved, safe to start work.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).theme/securitySecure by default. Content scanning, lockfile integrity, MCP trust boundaries.type/bugSomething does not work as documented.

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions