From f82d2aee4462b76e9f38f76adec5840ed718632a Mon Sep 17 00:00:00 2001 From: mw-w Date: Tue, 28 Oct 2025 11:31:10 +1100 Subject: [PATCH] add NX access token secrets variable to workflows that use nx, remove access token from nx.json --- .github/workflows/build-game-bridge.yaml | 1 + .github/workflows/passport-sdk-sample-app-deployment.yaml | 1 + .github/workflows/publish.yaml | 1 + .github/workflows/title-validation.yaml | 3 --- nx.json | 3 +-- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-game-bridge.yaml b/.github/workflows/build-game-bridge.yaml index 66b48f0a39..e201fe8779 100644 --- a/.github/workflows/build-game-bridge.yaml +++ b/.github/workflows/build-game-bridge.yaml @@ -39,6 +39,7 @@ jobs: runs-on: ubuntu-latest-4-cores env: NODE_OPTIONS: --max-old-space-size=14366 + NX_CLOUD_ACCESS_TOKEN: ${{ secrets.TS_IMMUTABLE_SDK_NX_TOKEN }} steps: - name: Checkout SDK Repository id: checkout-sdk diff --git a/.github/workflows/passport-sdk-sample-app-deployment.yaml b/.github/workflows/passport-sdk-sample-app-deployment.yaml index f9833191c7..255d2e0014 100644 --- a/.github/workflows/passport-sdk-sample-app-deployment.yaml +++ b/.github/workflows/passport-sdk-sample-app-deployment.yaml @@ -18,6 +18,7 @@ jobs: runs-on: ubuntu-latest env: AWS_REGION: us-east-2 + NX_CLOUD_ACCESS_TOKEN: ${{ secrets.TS_IMMUTABLE_SDK_NX_TOKEN }} steps: - name: configure aws credentials uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838 diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 7b1e16a107..c94c87b756 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -42,6 +42,7 @@ jobs: NODE_OPTIONS: --max-old-space-size=14366 SDK_PUBLISH_SLACK_WEBHOOK: ${{ secrets.SDK_PUBLISH_SLACK_WEBHOOK }} SDK_PUBLISH_MAJOR_VERSION_ACTORS: ${{ secrets.SDK_PUBLISH_MAJOR_VERSION_ACTORS }} + NX_CLOUD_ACCESS_TOKEN: ${{ secrets.TS_IMMUTABLE_SDK_NX_TOKEN }} permissions: id-token: write # ! Required for GitHub Attestations, removing will create a Sev 0 incident ! attestations: write # ! Required for GitHub Attestations, removing will create a Sev 0 incident ! diff --git a/.github/workflows/title-validation.yaml b/.github/workflows/title-validation.yaml index d0d12b27dd..96fcc377ce 100644 --- a/.github/workflows/title-validation.yaml +++ b/.github/workflows/title-validation.yaml @@ -11,9 +11,6 @@ on: permissions: pull-requests: read -env: - NX_CLOUD_ACCESS_TOKEN: ${{ secrets.TS_IMMUTABLE_SDK_NX_TOKEN }} - jobs: title-validation: name: Validate PR title diff --git a/nx.json b/nx.json index 8cd11513b0..1c42fd3294 100644 --- a/nx.json +++ b/nx.json @@ -90,6 +90,5 @@ } }, "defaultBase": "main", - "parallel": 8, - "nxCloudAccessToken": "Mzg3ZGY1MWUtYmYyNy00ZmE4LTkyNDAtYjYxZmJmYmE4NWQ3fHJlYWQ=" + "parallel": 8 }