diff --git a/.github/workflows/vale_linting.yml b/.github/workflows/vale_linting.yml index a2cfd7349..bbbfc5972 100644 --- a/.github/workflows/vale_linting.yml +++ b/.github/workflows/vale_linting.yml @@ -1,20 +1,29 @@ name: Vale linting on: pull_request: - + jobs: prose: runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Vale - uses: errata-ai/vale-action@reviewdog - with: - version: 3.7.1 - files: docs/en - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version-file: ".node-version" + - name: Install dependencies + run: npm install + - name: Vale + uses: errata-ai/vale-action@reviewdog + with: + version: 3.7.1 + files: docs/en + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}