Compare commits

..
Author SHA1 Message Date
Tom Keller febd088639 feat: add translate-env-variables option 2026-09-11 13:27:22 -07:00
Tom Keller 745a259f3b feat: add translate-env-variables option 2026-09-11 12:57:54 -07:00
6 changed files with 12 additions and 22 deletions

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
{
".release-please-manifest.json": "4.0.2",
"package.json": "6.0.0",
".": "6.3.0"
".": "6.2.4"
}
-7
View File
@@ -2,13 +2,6 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [6.3.0](https://github.com/aws-actions/configure-aws-credentials/compare/v6.2.4...v6.3.0) (2026-09-11)
### Features
* add translate-env-variables option ([#1961](https://github.com/aws-actions/configure-aws-credentials/issues/1961)) ([57b8365](https://github.com/aws-actions/configure-aws-credentials/commit/57b83659c2db2eb3b9c655186bef9a6a8f6620cb))
## [6.2.4](https://github.com/aws-actions/configure-aws-credentials/compare/v6.2.3...v6.2.4) (2026-08-31)
+6 -4
View File
@@ -5,6 +5,12 @@ Authenticate to AWS in GitHub Actions (and others)! Works especially well with
[secretsmanager]: https://github.com/aws-actions/aws-secretsmanager-get-secrets
_Note: We recommend that you follow
[GitHub's Security Best Practices][ghsecuritybestpractice]
when implementing this action._
[ghsecuritybestpractice]: https://docs.github.com/en/actions/reference/security/secure-use#using-third-party-actions
## Quick Start (OIDC, recommended)
1. Create an IAM Identity Provider in your AWS account for GitHub OIDC. (See
@@ -96,8 +102,6 @@ below).
- Be especially careful about running Actions in non-ephemeral environments, or
[triggering workflows on `pull_request_target`](https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#pull_request_target)
events.
- Follow [GitHub's security best practices][gh-security] for using third-party
actions.
- Set `translate-env-variables` to false if the [AWS environment variables][env]
or the [action input variables](./README.md#inputs-as-environment-variables)
in your runner are set by other processes to prevent unexpected behavior.
@@ -106,8 +110,6 @@ below).
https://docs.github.com/en/actions/security-guides/encrypted-secrets
[env]:
https://docs.aws.amazon.com/sdkref/latest/guide/settings-reference.html#EVarSettings
[gh-security]:
https://docs.github.com/en/actions/security-guides/security-best-practices-for-github-actions
## Non-OIDC Authentication Options
Generated Vendored
+2 -7
View File
@@ -74025,10 +74025,7 @@ function translateEnvVariables() {
for (const envVar of envVars) {
if (process.env[envVar]) {
const inputKey = `INPUT_${envVar.replace(/_/g, "-")}`;
if (!process.env[inputKey]) {
info(`Translating ${envVar} to input ${envVar.replace(/_/g, "-").toLowerCase()}`);
process.env[inputKey] = process.env[envVar];
}
process.env[inputKey] = process.env[inputKey] || process.env[envVar];
}
}
}
@@ -75938,9 +75935,7 @@ var REGION_REGEX = /^[a-z0-9-]+$/g;
var ROLE_SESSION_NAME_REGEX = /^[\w+=,.@-]*$/;
async function run() {
try {
if (getBooleanInput("translate-env-variables", { required: false, default: true })) {
translateEnvVariables();
}
translateEnvVariables();
const AccessKeyId = getInput("aws-access-key-id", { required: false });
const SecretAccessKey = getInput("aws-secret-access-key", { required: false });
const sessionTokenInput = getInput("aws-session-token", { required: false });
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "configure-aws-credentials",
"version": "6.3.0",
"version": "6.2.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "configure-aws-credentials",
"version": "6.3.0",
"version": "6.2.4",
"license": "MIT",
"dependencies": {
"@actions/core": "^3.0.1",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "configure-aws-credentials",
"description": "A GitHub Action to configure AWS credentials",
"version": "6.3.0",
"version": "6.2.4",
"scripts": {
"build": "tsc",
"lint": "biome check --error-on-warnings ./src ./test && markdownlint -i node_modules -i CHANGELOG.md '**/*.md'",