diff --git a/.github/workflows/update-prettier.yml b/.github/workflows/update-prettier.yml index 1d78752..5f93372 100644 --- a/.github/workflows/update-prettier.yml +++ b/.github/workflows/update-prettier.yml @@ -8,6 +8,11 @@ jobs: update_prettier: runs-on: ubuntu-latest steps: + - uses: actions/create-github-app-token@v2 + id: app-token + with: + app-id: ${{ vars.OCTOKIT_APP_ID }} + private-key: ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }} - uses: actions/checkout@v5 - uses: actions/setup-node@v6 with: @@ -17,7 +22,7 @@ jobs: - run: npm run lint:fix - uses: gr2m/create-or-update-pull-request-action@v1.x env: - GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }} + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} with: title: Prettier updated body: An update to prettier required updates to your code. diff --git a/package-lock.json b/package-lock.json index e61260e..68968ef 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "esbuild": "^0.25.0", "fetch-mock": "^11.0.0", "glob": "^11.0.0", - "prettier": "3.5.3", + "prettier": "3.6.2", "semantic-release-plugin-update-version-in-files": "^2.0.0", "typescript": "^5.0.0", "vitest": "^3.0.0" @@ -1065,7 +1065,6 @@ "integrity": "sha512-uWN8YqxXxqFMX2RqGOrumsKeti4LlmIMIyV0lgut4jx7KQBcBiW6vkDtIBvHnHIquwNfJhk8v2OtmO8zXWHfPA==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "undici-types": "~7.16.0" } @@ -1885,7 +1884,6 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", - "peer": true, "engines": { "node": ">=12" }, @@ -1923,9 +1921,9 @@ } }, "node_modules/prettier": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", - "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.6.2.tgz", + "integrity": "sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==", "dev": true, "license": "MIT", "bin": { @@ -2575,7 +2573,6 @@ "integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==", "dev": true, "license": "MIT", - "peer": true, "dependencies": { "@types/chai": "^5.2.2", "@vitest/expect": "3.2.4", diff --git a/package.json b/package.json index 9ebc190..8a76fb5 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "esbuild": "^0.25.0", "fetch-mock": "^11.0.0", "glob": "^11.0.0", - "prettier": "3.5.3", + "prettier": "3.6.2", "semantic-release-plugin-update-version-in-files": "^2.0.0", "typescript": "^5.0.0", "vitest": "^3.0.0" diff --git a/src/exchange-device-code.ts b/src/exchange-device-code.ts index 57925a9..9063aba 100644 --- a/src/exchange-device-code.ts +++ b/src/exchange-device-code.ts @@ -147,7 +147,7 @@ export async function exchangeDeviceCode( if ("refresh_token" in response.data) { const apiTimeInMs = new Date(response.headers.date as string).getTime(); - (authentication.refreshToken = response.data.refresh_token), + ((authentication.refreshToken = response.data.refresh_token), (authentication.expiresAt = toTimestamp( apiTimeInMs, response.data.expires_in, @@ -155,7 +155,7 @@ export async function exchangeDeviceCode( (authentication.refreshTokenExpiresAt = toTimestamp( apiTimeInMs, response.data.refresh_token_expires_in, - )); + ))); } delete authentication.scopes; diff --git a/src/exchange-web-flow-code.ts b/src/exchange-web-flow-code.ts index c3a5812..5b539bb 100644 --- a/src/exchange-web-flow-code.ts +++ b/src/exchange-web-flow-code.ts @@ -89,7 +89,7 @@ export async function exchangeWebFlowCode( if ("refresh_token" in response.data) { const apiTimeInMs = new Date(response.headers.date as string).getTime(); - (authentication.refreshToken = response.data.refresh_token), + ((authentication.refreshToken = response.data.refresh_token), (authentication.expiresAt = toTimestamp( apiTimeInMs, response.data.expires_in, @@ -97,7 +97,7 @@ export async function exchangeWebFlowCode( (authentication.refreshTokenExpiresAt = toTimestamp( apiTimeInMs, response.data.refresh_token_expires_in, - )); + ))); } delete authentication.scopes;