Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 995 Bytes

File metadata and controls

10 lines (9 loc) · 995 Bytes

AGENTS.md

  • Do not edit files under dist/. The bundle is generated by bun run build.
  • dist/ is in .gitignore but tracked in git; use git add -f dist/ after rebuilding.
  • The action has three execution phases: pre (dist/pre.js), main (dist/index.js), and post (dist/post.js).
    • In sync mode: pre issues credentials, writes the AWS profile, and exports env vars. main only prints logs. post is a no-op.
    • In async mode: pre forks a detached child process to issue credentials in the background and writes a temp file path to _SECURITY_CREDENTIALS_PATH. main waits for that file and exports env vars once the background process has written them. post checks for error files written by the background process and reports them.
  • src/run-async.ts is the child process entry point for async mode. It writes errors to <credentialsPath>.error.
  • Tests are in src/__tests__/. Run with bun run test.
  • Always run bun run build before running bun run test