chore: make script inline (#1460)

* add pre-release integ tests

* chore: remove unnecessary sudo and reorganize test files

* chore: inline write token file
This commit is contained in:
Michael Lehmann
2025-08-29 17:11:06 -07:00
committed by GitHub
parent cb3b499674
commit 45a41642bb
2 changed files with 12 additions and 13 deletions

View File

@@ -1,12 +0,0 @@
import core from "@actions/core";
import fs from "fs/promises";
async function getIDTokenAction() {
const id_token = await core.getIDToken("sts.amazonaws.com");
return id_token;
}
let idToken = await getIDTokenAction();
await fs.writeFile(".github/integ_tests/integ_token.txt", idToken, (err) => {
if (err) throw err;
});

View File

@@ -179,7 +179,18 @@ jobs:
fetch-depth: 0
persist-credentials: false
- name: fetch token and write to file
run: node .github/integ_tests/fetch-token.js
uses: actions/github-script@v7
with:
script: |
const fs = require('fs');
async function getIDTokenAction() {
const id_token = await core.getIDToken("sts.amazonaws.com");
return id_token;
}
const idToken = await getIDTokenAction();
fs.writeFileSync(".github/integ_tests/integ_token.txt", idToken, (err) => {
if (err) throw err;
});
- name: get creds with that file
uses: ./
with: