- Do not edit files under
dist/. The bundle is generated bybun run build. dist/is in.gitignorebut tracked in git; usegit add -f dist/after rebuilding.- The action has three execution phases:
pre(dist/pre.js),main(dist/index.js), andpost(dist/post.js).- In sync mode:
preissues credentials, writes the AWS profile, and exports env vars.mainonly prints logs.postis a no-op. - In async mode:
preforks a detached child process to issue credentials in the background and writes a temp file path to_SECURITY_CREDENTIALS_PATH.mainwaits for that file and exports env vars once the background process has written them.postchecks for error files written by the background process and reports them.
- In sync mode:
src/run-async.tsis the child process entry point for async mode. It writes errors to<credentialsPath>.error.- Tests are in
src/__tests__/. Run withbun run test. - Always run
bun run buildbefore runningbun run test