Skip to content

Commit 45a4164

Browse files
authored
chore: make script inline (#1460)
* add pre-release integ tests * chore: remove unnecessary sudo and reorganize test files * chore: inline write token file
1 parent cb3b499 commit 45a4164

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

.github/integ_tests/fetch-token.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/workflows/tests-integ-release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,18 @@ jobs:
179179
fetch-depth: 0
180180
persist-credentials: false
181181
- name: fetch token and write to file
182-
run: node .github/integ_tests/fetch-token.js
182+
uses: actions/github-script@v7
183+
with:
184+
script: |
185+
const fs = require('fs');
186+
async function getIDTokenAction() {
187+
const id_token = await core.getIDToken("sts.amazonaws.com");
188+
return id_token;
189+
}
190+
const idToken = await getIDTokenAction();
191+
fs.writeFileSync(".github/integ_tests/integ_token.txt", idToken, (err) => {
192+
if (err) throw err;
193+
});
183194
- name: get creds with that file
184195
uses: ./
185196
with:

0 commit comments

Comments
 (0)