diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 9a5bf45..7d1ab5f 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -1,18 +1,23 @@ name: Pull request -on: [pull_request] +on: [pull_request, pull_request_target] + +permissions: + checks: write + contents: write jobs: continuous-integration: name: Continuous Integration runs-on: ubuntu-latest + steps: - name: Git checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: - node-version: '14' + node-version: '20' registry-url: 'https://registry.npmjs.org' - name: Install NPM dependencies run: npm ci @@ -21,7 +26,7 @@ jobs: - name: Lint run: npm run lint - name: Lint - uses: wearerequired/lint-action@v1.10.0 + uses: wearerequired/lint-action@v2.3.0 with: continue_on_error: false auto_fix: false