mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-11-28 03:04:21 +01:00
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e1253824e5 | ||
|
|
438100a0eb | ||
|
|
e92ebccf39 | ||
|
|
57b83659c2 |
No files matched your search
@@ -1,5 +1,5 @@
|
||||
{
|
||||
".release-please-manifest.json": "4.0.2",
|
||||
"package.json": "6.0.0",
|
||||
".": "6.2.4"
|
||||
".": "6.3.0"
|
||||
}
|
||||
@@ -2,6 +2,13 @@
|
||||
|
||||
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)
|
||||
|
||||
|
||||
|
||||
@@ -5,12 +5,6 @@ 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
|
||||
@@ -102,6 +96,8 @@ 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.
|
||||
@@ -110,6 +106,8 @@ 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
|
||||
|
||||
|
||||
+7
-2
@@ -74025,7 +74025,10 @@ function translateEnvVariables() {
|
||||
for (const envVar of envVars) {
|
||||
if (process.env[envVar]) {
|
||||
const inputKey = `INPUT_${envVar.replace(/_/g, "-")}`;
|
||||
process.env[inputKey] = process.env[inputKey] || process.env[envVar];
|
||||
if (!process.env[inputKey]) {
|
||||
info(`Translating ${envVar} to input ${envVar.replace(/_/g, "-").toLowerCase()}`);
|
||||
process.env[inputKey] = process.env[envVar];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -75935,7 +75938,9 @@ var REGION_REGEX = /^[a-z0-9-]+$/g;
|
||||
var ROLE_SESSION_NAME_REGEX = /^[\w+=,.@-]*$/;
|
||||
async function run() {
|
||||
try {
|
||||
translateEnvVariables();
|
||||
if (getBooleanInput("translate-env-variables", { required: false, default: true })) {
|
||||
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 });
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "configure-aws-credentials",
|
||||
"version": "6.2.4",
|
||||
"version": "6.3.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "configure-aws-credentials",
|
||||
"version": "6.2.4",
|
||||
"version": "6.3.0",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^3.0.1",
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "configure-aws-credentials",
|
||||
"description": "A GitHub Action to configure AWS credentials",
|
||||
"version": "6.2.4",
|
||||
"version": "6.3.0",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"lint": "biome check --error-on-warnings ./src ./test && markdownlint -i node_modules -i CHANGELOG.md '**/*.md'",
|
||||
|
||||
Reference in new issue
Block a user