From d67909bb68e0379c36dbaf6ad21bf1fbffd4cfce Mon Sep 17 00:00:00 2001 From: Shengyu Zhang Date: Thu, 1 Dec 2022 00:21:00 +0800 Subject: [PATCH] Use correct permission name See: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 7fee7d0..36301db 100644 --- a/src/index.js +++ b/src/index.js @@ -19,7 +19,7 @@ async function main() { idToken = await core.getIDToken() } catch (error) { console.log(error) - core.setFailed(`Ensure GITHUB_TOKEN has permission "idToken: write".`) + core.setFailed(`Ensure GITHUB_TOKEN has permission "id-token: write".`) return } try {