Clean up a few typescript warnings (#25)

This commit is contained in:
Seth Vargo 2021-09-30 16:07:11 -04:00 committed by GitHub
parent 60904d8a0d
commit 02f3d58995
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

View File

@ -35,7 +35,7 @@ jobs:
# Add "id-token" with the intended permissions.
permissions:
contents: read
contents: 'read'
id-token: 'write'
steps:
@ -157,7 +157,7 @@ jobs:
# Add "id-token" with the intended permissions.
permissions:
contents: read
contents: 'read'
id-token: 'write'
steps:
@ -203,7 +203,7 @@ jobs:
# Add "id-token" with the intended permissions.
permissions:
contents: read
contents: 'read'
id-token: 'write'
steps:
@ -238,7 +238,7 @@ jobs:
# Add "id-token" with the intended permissions.
permissions:
contents: read
contents: 'read'
id-token: 'write'
steps:

View File

@ -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