From fb88f189fc4b5f56ed900fbc399965824f86d0bb Mon Sep 17 00:00:00 2001 From: Brian White Date: Sat, 15 Jul 2023 11:04:51 -0400 Subject: [PATCH] ci: update workflows --- .github/workflows/ci.yml | 8 ++++++++ .github/workflows/lint.yml | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1b0f7a2d..872368e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,6 +17,8 @@ jobs: node-version: [10.16.0, 10.x, 12.x, 14.x, 16.x, 18.x, 20.x] steps: - uses: actions/checkout@v3 + with: + persist-credentials: false - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: @@ -40,6 +42,8 @@ jobs: node-version: [16.x, 18.x, 20.x] steps: - uses: actions/checkout@v3 + with: + persist-credentials: false - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: @@ -54,6 +58,8 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v3 + with: + persist-credentials: false - name: Use Node.js (latest) run: brew install node - name: Check Node.js version @@ -70,6 +76,8 @@ jobs: node-version: [16.x, 18.x, 20.x] steps: - uses: actions/checkout@v3 + with: + persist-credentials: false - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 98692a69..25c27a5c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,10 +13,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + with: + persist-credentials: false - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v3 with: node-version: ${{ env.NODE_VERSION }} + - name: Check Node.js version + run: node -pe process.versions - name: Install ESLint + ESLint configs/plugins run: npm install --only=dev - name: Lint files