Skip to content

feat(aws.codeartifact.configure-credentials): add CodeArtifact authentication - #49

Merged
posquit0 merged 4 commits into
mainfrom
feat/aws-codeartifact-configure-credentials
Nov 9, 2026
Merged

posquit0 merged 4 commits into
mainfrom
feat/aws-codeartifact-configure-credentials

Conversation

@posquit0

@posquit0 posquit0 commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

👋 Background

Package producers and consumers need CodeArtifact credentials regardless of whether they use uv, Poetry, npm, pnpm, Yarn, Maven, or Gradle. This action provides the shared authentication step after the caller configures AWS credentials.

⚙️ Description

  • Add aws.codeartifact.configure-credentials for all CodeArtifact endpoint formats (cargo, generic, maven, npm, nuget, pypi, ruby, and swift) using Bash and the existing AWS CLI.
  • Require explicit region, domain, repository, and format. The domain owner is optional for same-account access and is passed to AWS only when provided. Default token duration to 0 (the remaining assumed-role session lifetime), with support for explicit durations of 900–43200 seconds.
  • Mask the token and export CODEARTIFACT_AUTH_TOKEN and CODEARTIFACT_REPOSITORY_ENDPOINT for subsequent steps only after both API calls succeed. Expose the endpoint as an action output; never expose the token as an action output.
  • Document IAM prerequisites, OIDC/role chaining, and package-manager-specific use. Package manager configuration remains with the caller.
  • Include locally runnable regression tests with a mocked AWS CLI.

🚨 To Reviewers

Validation: 51 local regression scenarios across five test methods, covering all eight formats and omitted, empty, and explicit domain owners; ShellCheck; GitHub action JSON schema; and git diff --check. The regression suite can be run locally with the README command.

No live AWS API or package publishing test has been performed.

@github-actions github-actions Bot added 💾 actions This issue or pull request is related to actions. 💾 workflows This issue or pull request is related to workflows. size/M Medium size issue or PR. labels Oct 25, 2026
@github-actions

Copy link
Copy Markdown

GitHub Actions Integration

Repository jactionlint check-jsonschema (workflows) check-jsonschema (actions)
tedilabs/github-actions ✅ ✅ ✅

✅ All 1 passed.

@github-actions github-actions Bot removed the 💾 workflows This issue or pull request is related to workflows. label Nov 9, 2026
@posquit0
posquit0 merged commit 157a16f into main Nov 9, 2026
7 checks passed
@posquit0
posquit0 deleted the feat/aws-codeartifact-configure-credentials branch November 9, 2026 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💾 actions This issue or pull request is related to actions. size/M Medium size issue or PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant