Repository navigation
fix: correct --overrides flag in AzDO publish pipeline template - #50
Closed
Elizabeth Maher (EMaher) with Copilot wants to merge 96 commits into
Closed
Elizabeth Maher (EMaher) with Copilot wants to merge 96 commits into
Elizabeth Maher (EMaher) with Copilot wants to merge 96 commits into
Conversation
…82f-4385-8d11-36f74c270370 Adding Microsoft SECURITY.MD
Initial checkin for source code, tests & configuration
Add CodeQL analysis workflow configuration
- Remove unnecessary type assertion in override-merger.ts - Fix unknown type in template literals in product-publisher.ts - Add yield* [] to generator without yield in api-product-extractor.test.ts - Remove unused variable, fix eslint-disable directive, and rename unused param in extract-service.test.ts Agent-Logs-Url: https://github.com/Azure/apiops-cli/sessions/e990f413-47fb-4e99-bddf-9c31ae9b68fe Co-authored-by: EMaher <9244742+EMaher@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…st' of https://github.com/Azure/apiops-cli into enewman/integration-test
- Create src/lib/user-agent.ts — single source of truth for User-Agent string - Set User-Agent header on all HTTP requests in ApimClient.request() - Add unit tests: tests/unit/lib/user-agent.test.ts + apim-client coverage Closes #16 Agent-Logs-Url: https://github.com/Azure/apiops-cli/sessions/7d507051-7b27-4f36-b053-acc897e40ecc Co-authored-by: petehauge <12090616+petehauge@users.noreply.github.com>
Second test now verifies User-Agent is set on unauthenticated blob requests (skipAuth=true) and that Authorization header is absent on those calls. Closes #16 Agent-Logs-Url: https://github.com/Azure/apiops-cli/sessions/7d507051-7b27-4f36-b053-acc897e40ecc Co-authored-by: petehauge <12090616+petehauge@users.noreply.github.com>
- Added TypeScriptDev learning: USER_AGENT constant in src/lib/user-agent.ts, header set in ApimClient.request() at line 108 - Added TestEngineer learning: User-Agent testing patterns for both auth paths - Closes #16 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: petehauge <12090616+petehauge@users.noreply.github.com>
Addresses PR review feedback: the production defaultArmRequest fetch call in keyvault-checker.ts was missing the User-Agent header. Now imports USER_AGENT from user-agent.ts and adds it alongside Authorization/Accept. Adds a unit test that calls checkKeyVaultSecretAccess without an injected armRequest (so defaultArmRequest runs) and verifies every fetch call carries the correct User-Agent header. Closes #16 Agent-Logs-Url: https://github.com/Azure/apiops-cli/sessions/8b196bc2-81c8-4320-9a60-c3655ee4b3bc Co-authored-by: petehauge <12090616+petehauge@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/apiops-cli/sessions/8b196bc2-81c8-4320-9a60-c3655ee4b3bc Co-authored-by: petehauge <12090616+petehauge@users.noreply.github.com>
Integration test updates
…tern Agent-Logs-Url: https://github.com/Azure/apiops-cli/sessions/16641d14-86ab-42af-9e18-34ecbc7c4bd1 Co-authored-by: EMaher <9244742+EMaher@users.noreply.github.com>
feat: add User-Agent header to all REST API calls
Removes [uuid](https://github.com/uuidjs/uuid). It's no longer used after updating ancestor dependency [@azure/msal-node](https://github.com/AzureAD/microsoft-authentication-library-for-js). These dependencies need to be updated together. Removes `uuid` Updates `@azure/msal-node` from 5.1.4 to 5.1.5 - [Release notes](https://github.com/AzureAD/microsoft-authentication-library-for-js/releases) - [Commits](AzureAD/microsoft-authentication-library-for-js@msal-node-v5.1.4...msal-node-v5.1.5) --- updated-dependencies: - dependency-name: uuid dependency-version: dependency-type: indirect - dependency-name: "@azure/msal-node" dependency-version: 5.1.5 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com>
- README: restructure Authentication section to separate GitHub Actions OIDC path (no client secret) from local CLI / other CI (client secret, managed identity). Removes conflation of managed identity with the --client-secret flag path. - identity-guide-service: replace "Rotate service principal credentials periodically" with an accurate note that OIDC has no stored credentials to rotate. Agent-Logs-Url: https://github.com/Azure/apiops-cli/sessions/6c946379-655e-4831-a343-bbb3030e4fdb Co-authored-by: petehauge <12090616+petehauge@users.noreply.github.com>
NodeJsDev implemented single-source-of-truth version management using
ESM import attributes to read from package.json at runtime.
- Created decisions.md with version management pattern
- Updated NodeJsDev history with implementation details
- Decision: Use 'with { type: 'json' }' import syntax for Node 22+
Agent-Logs-Url: https://github.com/Azure/apiops-cli/sessions/d2a8284f-2302-400f-ad67-d15f32b4a2e0 Co-authored-by: EMaher <9244742+EMaher@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/apiops-cli/sessions/42168ff2-9b29-44ed-a16d-48322b6dd431 Co-authored-by: EMaher <9244742+EMaher@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/apiops-cli/sessions/49f6fc1a-2e54-4356-9cb2-b4dd8e8cd5ec Co-authored-by: EMaher <9244742+EMaher@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/apiops-cli/sessions/dd1b19f6-5635-4ddd-9753-1481c37bdcdc Co-authored-by: EMaher <9244742+EMaher@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/apiops-cli/sessions/dd1b19f6-5635-4ddd-9753-1481c37bdcdc Co-authored-by: EMaher <9244742+EMaher@users.noreply.github.com>
The Azure DevOps publish pipeline template was using `--override` (singular) which is not a recognized option in `apiops publish`. The correct flag is `--overrides` (plural). This caused the pipeline to fail with an unknown-option error regardless of which COMMIT_ID_CHOICE was selected. The incremental step already correctly passed `--commit-id $(Build.SourceVersion)` when `publish-artifacts-in-last-commit` is chosen (via the `ne()` condition). This fix ensures the command is actually valid so the commit-id flag is honoured. Closes #45 Agent-Logs-Url: https://github.com/Azure/apiops-cli/sessions/db84354f-ba77-4077-8d97-de9af7994fd8 Co-authored-by: EMaher <9244742+EMaher@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for publish-artifacts-in-last-commit in azdo pipeline
fix: correct --overrides flag in AzDO publish pipeline template
May 11, 2026
Elizabeth Maher (EMaher)
force-pushed
the
copilot/add-support-for-publish-artifacts
branch
from
May 19, 2026 18:31
9f55af3 to
95bf52e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Azure DevOps publish pipeline generated by
apiops initwas passing--override(unrecognized by Commander.js) instead of--overrides, causing every pipeline run to fail with an unknown-option error — including runs withpublish-artifacts-in-last-committhat should invoke incremental publish via--commit-id $(Build.SourceVersion).Changes
src/templates/azure-devops/publish-pipeline.ts:--override→--overridesin both the incremental and all-artifactsAzureCLI@2stepstests/unit/templates/azure-devops/publish-pipeline.test.ts: Updated assertion to match corrected flagGenerated pipeline (incremental step)
The conditional logic (
ne('${{ parameters.COMMIT_ID_CHOICE }}', 'publish-all-artifacts-in-repo')) andfetchDepth: 2were already correct; only the flag name was wrong.