From 952d83880a5a3a54593456782ce63f33d6a3318b Mon Sep 17 00:00:00 2001 From: ICHINOSE Shogo Date: Fri, 12 Jan 2024 16:51:26 +0900 Subject: [PATCH] drop obfuscate-repository --- action.yml | 5 ----- action/src/index.ts | 4 ---- 2 files changed, 9 deletions(-) diff --git a/action.yml b/action.yml index 96dfc23..8df5802 100644 --- a/action.yml +++ b/action.yml @@ -34,11 +34,6 @@ inputs: required: true default: false - obfuscate-repository: - description: "obfuscate your repository name" - required: true - default: "" - deprecationMessage: "obfuscate-repository is deprecated. use `use-node-id: true` instead of it." runs: using: "node20" main: "action/lib/index.js" diff --git a/action/src/index.ts b/action/src/index.ts index 1070973..7fae832 100644 --- a/action/src/index.ts +++ b/action/src/index.ts @@ -10,7 +10,6 @@ interface AssumeRoleParams { roleSessionTagging: boolean; providerEndpoint: string; useNodeId: boolean; - obfuscateRepository: string; } interface AssumeRolePayload { @@ -119,7 +118,6 @@ export async function assumeRole(params: AssumeRoleParams) { api_url: GITHUB_API_URL, repository: GITHUB_REPOSITORY, use_node_id: params.useNodeId, - obfuscate_repository: params.obfuscateRepository, sha: GITHUB_SHA, role_session_tagging: params.roleSessionTagging, run_id: GITHUB_RUN_ID, @@ -171,7 +169,6 @@ async function run() { const providerEndpoint = core.getInput("provider-endpoint") || "https://uw4qs7ndjj.execute-api.us-east-1.amazonaws.com/assume-role"; const useNodeId = core.getBooleanInput("use-node-id", required); - const obfuscateRepository = core.getInput("obfuscate-repository"); if (roleDurationSeconds <= 0 || roleDurationSeconds > 60 * 60) { core.setFailed(`invalid role-duration-seconds ${roleDurationSeconds}, it should be from 1 to 3600`); } @@ -184,7 +181,6 @@ async function run() { roleSessionTagging, providerEndpoint, useNodeId, - obfuscateRepository, }); } catch (error) { if (error instanceof Error) {