Clean up a few typescript warnings (#25)
This commit is contained in:
parent
60904d8a0d
commit
02f3d58995
@ -35,7 +35,7 @@ jobs:
|
|||||||
|
|
||||||
# Add "id-token" with the intended permissions.
|
# Add "id-token" with the intended permissions.
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: 'read'
|
||||||
id-token: 'write'
|
id-token: 'write'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -157,7 +157,7 @@ jobs:
|
|||||||
|
|
||||||
# Add "id-token" with the intended permissions.
|
# Add "id-token" with the intended permissions.
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: 'read'
|
||||||
id-token: 'write'
|
id-token: 'write'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -203,7 +203,7 @@ jobs:
|
|||||||
|
|
||||||
# Add "id-token" with the intended permissions.
|
# Add "id-token" with the intended permissions.
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: 'read'
|
||||||
id-token: 'write'
|
id-token: 'write'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -238,7 +238,7 @@ jobs:
|
|||||||
|
|
||||||
# Add "id-token" with the intended permissions.
|
# Add "id-token" with the intended permissions.
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: 'read'
|
||||||
id-token: 'write'
|
id-token: 'write'
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
@ -46,7 +46,10 @@ async function run(): Promise<void> {
|
|||||||
// fails, which means continue-on-error actions will still have the file
|
// fails, which means continue-on-error actions will still have the file
|
||||||
// available.
|
// available.
|
||||||
if (createCredentialsFile) {
|
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
|
// Extract the request token and request URL from the environment. These
|
||||||
// are only set when an id-token is requested and the submitter has
|
// are only set when an id-token is requested and the submitter has
|
||||||
|
Loading…
Reference in New Issue
Block a user