diff --git a/.github/workflows/integration_test.yml b/.github/workflows/integration_test.yml index 1eb8fb5..04eeefa 100644 --- a/.github/workflows/integration_test.yml +++ b/.github/workflows/integration_test.yml @@ -18,6 +18,9 @@ jobs: repository: 'optimizely/travisci-tools' path: 'home/runner/travisci-tools' ref: 'master' + # Don't leave the PAT on disk. The trigger script calls the GitHub API + # with curl and the token from env, not through git. + persist-credentials: false - name: Set SDK branch if PR env: HEAD_REF: ${{ github.head_ref }} diff --git a/.github/workflows/react.yml b/.github/workflows/react.yml index 8d75668..812291c 100644 --- a/.github/workflows/react.yml +++ b/.github/workflows/react.yml @@ -16,6 +16,9 @@ jobs: steps: - name: Checkout branch uses: actions/checkout@v4 + with: + # No later step uses git, so do not leave the GitHub token in .git/config. + persist-credentials: false - name: Set up Node ${{ matrix.node }} uses: actions/setup-node@v4 with: