diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 182667a..8efdbd1 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -4,13 +4,19 @@ on: branches: - main +permissions: {} + jobs: lint: runs-on: ubuntu-latest + permissions: + contents: read steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2 + with: + persist-credentials: false - name: Use Node.js version specified in .nvmrc - uses: actions/setup-node@v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version-file: '.nvmrc' cache: 'npm' @@ -20,10 +26,14 @@ jobs: build: runs-on: ubuntu-latest + permissions: + contents: read steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2 + with: + persist-credentials: false - name: Use Node.js version specified in .nvmrc - uses: actions/setup-node@v4 + uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version-file: '.nvmrc' cache: 'npm'