From 6cf377ed87980732bea47549913e1f9cb4d11c66 Mon Sep 17 00:00:00 2001 From: Pagan Gazzard Date: Fri, 27 Sep 2024 14:36:37 +0100 Subject: [PATCH] CI: Update checkout settings Change-type: patch --- .github/workflows/deploy.yml | 8 +++++--- .github/workflows/node.yml | 6 +++++- .github/workflows/release.yml | 4 ++++ 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e2c7222..3003877 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -10,19 +10,21 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + with: + persist-credentials: false - name: Setup Node.js uses: actions/setup-node@v2 with: node-version: 14 - name: Cache node modules uses: c-hive/gha-npm-cache@v1 - + - name: Install dependencies run: npm ci - name: Generate wrangler.toml run: npm run generate - env: + env: CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }} CF_KV_NAMESPACE_REDIRECT_KV: ${{ secrets.CF_KV_NAMESPACE_REDIRECT_KV }} CF_WORKERS_DEV: true @@ -30,4 +32,4 @@ jobs: - name: Publish to Cloudflare with Wrangler uses: cloudflare/wrangler-action@1.3.0 with: - apiToken: ${{ secrets.CF_API_TOKEN }} \ No newline at end of file + apiToken: ${{ secrets.CF_API_TOKEN }} diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index c3caaa4..82ccb37 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -14,6 +14,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + with: + persist-credentials: false - name: Setup Node.js uses: actions/setup-node@v2 with: @@ -31,6 +33,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + with: + persist-credentials: false - name: Setup Node.js uses: actions/setup-node@v2 with: @@ -40,4 +44,4 @@ jobs: - name: Install dependencies run: npm ci - name: Run build command - run: npm run build \ No newline at end of file + run: npm run build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eea1f40..87af80b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + with: + persist-credentials: false - name: Setup Node.js uses: actions/setup-node@v2 with: @@ -29,6 +31,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + with: + persist-credentials: false - name: Setup Node.js uses: actions/setup-node@v2 with: