Skip to content
Back to skills

Fixtures

ASecurity

This PR refactors authentication. It centralizes token resolution into a new AuthResolver class and removes the --token-source flag.

  • 3,953 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 2, 2026
ai-agentstestinggit

Works with

  • cli

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add microsoft/apm --skill fixtures --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fixtures?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fixtures
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/microsoft-fixtures-1b02b39c/badge)](https://www.skillsdirectory.com/skills/microsoft-fixtures-1b02b39c)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Auth refactor

This PR refactors authentication. It centralizes token resolution
into a new AuthResolver class and removes the --token-source flag.

## What changed

- Added a new file src/apm_cli/auth/resolver.py with the
  AuthResolver class.
- Updated src/apm_cli/auth/__init__.py to export AuthResolver.
- Updated src/apm_cli/cli.py to use AuthResolver for all token
  lookups and removed the --token-source flag.
- Updated src/apm_cli/integration/git.py to delegate to
  AuthResolver and dropped the GITHUB_APM_PAT fallback.
- Added unit tests in tests/unit/auth/test_resolver.py.
- Updated CHANGELOG.md.

## Why

The previous code had token resolution logic scattered across
multiple modules. This was fragile and led to bugs. Centralizing
it makes the code cleaner and easier to maintain. This is a
significantly enhanced approach to authentication.

## Testing

I ran the tests and they passed. The audit also passed.

## Notes

This is a breaking change because the --token-source flag is
removed.

Files in this skill

  • auth-refactor__with_skill.md3.7 KB
  • auth-refactor__without_skill.md1009 B
  • dep-bump__with_skill.md1.4 KB
  • dep-bump__without_skill.md246 B
  • docs-only__with_skill.md1.8 KB
  • docs-only__without_skill.md264 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…