Skip to content

Commit

Permalink
lowercase now cool
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Hall <jason@chainguard.dev>
  • Loading branch information
imjasonh committed Jan 28, 2024
1 parent 06c2a0a commit e2d03f9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions post.js
@@ -1,4 +1,4 @@
const tok = process.env.STATE_TOKEN;
const tok = process.env.STATE_token;

if (!tok) {
console.log(`::warning::Token not found in state file.`);
Expand All @@ -7,11 +7,7 @@ if (!tok) {

fetch('https://api.github.com/installation/token', {
method: 'DELETE',
headers: {
'Authorization': `Bearer ${tok}`,
'Accept': 'application/vnd.github+json',
'X-GitHub-Api-Version': '2022-11-28'
}
headers: { 'Authorization': `Bearer ${tok}` },
})
.then(res => {
if (res.status == 204) {
Expand Down

0 comments on commit e2d03f9

Please sign in to comment.