Skip to content

Commit

Permalink
Clean up a few typescript warnings (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo authored Sep 30, 2021
1 parent 60904d8 commit 02f3d58
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

# Add "id-token" with the intended permissions.
permissions:
contents: read
contents: 'read'
id-token: 'write'

steps:
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
# Add "id-token" with the intended permissions.
permissions:
contents: read
contents: 'read'
id-token: 'write'
steps:
Expand Down Expand Up @@ -203,7 +203,7 @@ jobs:
# Add "id-token" with the intended permissions.
permissions:
contents: read
contents: 'read'
id-token: 'write'
steps:
Expand Down Expand Up @@ -238,7 +238,7 @@ jobs:
# Add "id-token" with the intended permissions.
permissions:
contents: read
contents: 'read'
id-token: 'write'
steps:
Expand Down
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ async function run(): Promise<void> {
// fails, which means continue-on-error actions will still have the file
// available.
if (createCredentialsFile) {
const runnerTempDir = process.env.RUNNER_TEMP!;
const runnerTempDir = process.env.RUNNER_TEMP;
if (!runnerTempDir) {
throw new Error('$RUNNER_TEMP is not set');
}

// Extract the request token and request URL from the environment. These
// are only set when an id-token is requested and the submitter has
Expand Down

0 comments on commit 02f3d58

Please sign in to comment.