Skip to content

Commit

Permalink
fix: core,aws imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Rishang authored and say8425 committed Sep 14, 2022
1 parent 53e8468 commit 82c0081
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as core from '@actions/core'
import { SecretsManager } from 'aws-sdk'
const core = require('@actions/core')
const aws = require('aws-sdk')
const fs = require('fs')

const outputPath = core.getInput('OUTPUT_PATH')
Expand All @@ -15,7 +15,7 @@ if (core.getInput('AWS_SESSION_TOKEN') || process.env.AWS_SESSION_TOKEN) {
AWSConfig.sessionToken = core.getInput('AWS_SESSION_TOKEN') || process.env.AWS_SESSION_TOKEN
}

const secretsManager = new SecretsManager(AWSConfig)
const secretsManager = new aws.SecretsManager(AWSConfig)

async function getSecretValue (secretsManager, secretName) {
return secretsManager.getSecretValue({ SecretId: secretName }).promise()
Expand Down

0 comments on commit 82c0081

Please sign in to comment.