Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Oct 3, 2024
1 parent 726f74d commit 5614895
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33370,7 +33370,7 @@ async function getUnityAccessToken(projectId, credentials) {
const credentialsBase64 = Buffer.from(credentials).toString('base64');
core.setSecret(credentialsBase64);
let output = '';
const payload = { "scopes": ["unity.projects.get", "unity.projects.create"] };
const payload = { "scopes": [] };
await exec.exec('curl', ['-X', 'POST', '-H', `Authorization: Basic ${credentialsBase64}`, '-H', 'Content-Type: application/json', '-d', JSON.stringify(payload), `https://services.api.unity.com/auth/v1/token-exchange?projectId=${projectId}`], {
listeners: {
stdout: (data) => {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ async function getUnityAccessToken(projectId: string, credentials: string): Prom
const credentialsBase64 = Buffer.from(credentials).toString('base64');
core.setSecret(credentialsBase64);
let output: string = '';
const payload = { "scopes": ["unity.projects.get", "unity.projects.create"] };
const payload = { "scopes": [] };
await exec.exec('curl', ['-X', 'POST', '-H', `Authorization: Basic ${credentialsBase64}`, '-H', 'Content-Type: application/json', '-d', JSON.stringify(payload), `https://services.api.unity.com/auth/v1/token-exchange?projectId=${projectId}`], {
listeners: {
stdout: (data: Buffer) => {
Expand Down

0 comments on commit 5614895

Please sign in to comment.