Skip to content

Commit

Permalink
test: private-key with escaped newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m authored May 1, 2024
1 parent f4f660f commit 9bb7eb9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/main-private-key-with-escaped-newlines.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { test, DEFAULT_ENV } from "./main.js";

// Verify `main` successfully obtains a token when the `owner` input is not set, but the `repositories` input is set.
await test(() => {
process.env['INPUT_PRIVATE-KEY'] = DEFAULT_ENV.PRIVATE_KEY.replace(/\n/g, '\\n')
});

0 comments on commit 9bb7eb9

Please sign in to comment.