diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock new file mode 100644 index 0000000..984672a --- /dev/null +++ b/.github/workflows/actions.lock @@ -0,0 +1,27 @@ +# This file is machine-generated by `gh actions-lock`. +# Do not edit by hand; run `gh actions-lock` to update. +# Docs: https://gh.io/actions-lockfile +version: 'v0.0.3' +workflows: + '.github/workflows/main.yml': + - 'actions/checkout@v4.4.0' + - 'actions/setup-node@v4.4.0' + - 'qltysh/qlty-action@v2.2.2' + '.github/workflows/verify-lockfile.yml': + - 'actions/checkout@v4.4.0' +dependencies: + 'actions/checkout@v4.4.0': + ref: 'v4.4.0' + commit: 'sha1-11d5960a326750d5838078e36cf38b85af677262' + owner_id: 44036562 + repo_id: 197814629 + 'actions/setup-node@v4.4.0': + ref: 'v4.4.0' + commit: 'sha1-49933ea5288caeca8642d1e84afbd3f7d6820020' + owner_id: 44036562 + repo_id: 189476904 + 'qltysh/qlty-action@v2.2.2': + ref: 'v2.2.2' + commit: 'sha1-b413a89d8f3a8b36b9edd20b7ef1ad7ae0a7ac3a' + owner_id: 184769278 + repo_id: 873940193 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dde6143..058edbc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,10 +22,10 @@ jobs: name: Node ${{ matrix.node }} sample steps: - name: Checkout repo - uses: actions/checkout@v4 + uses: actions/checkout@v4.4.0 - name: Setup node - uses: actions/setup-node@v4 + uses: actions/setup-node@v4.4.0 with: node-version: ${{ matrix.node }} @@ -35,7 +35,7 @@ jobs: - name: Run tests run: npm test - - uses: qltysh/qlty-action/coverage@b413a89d8f3a8b36b9edd20b7ef1ad7ae0a7ac3a # version 2.2.2 + - uses: qltysh/qlty-action/coverage@v2.2.2 with: oidc: true files: coverage/lcov.info diff --git a/.github/workflows/verify-lockfile.yml b/.github/workflows/verify-lockfile.yml new file mode 100644 index 0000000..11a5a2a --- /dev/null +++ b/.github/workflows/verify-lockfile.yml @@ -0,0 +1,32 @@ +--- +name: Verify actions lockfile + +# yamllint disable-line rule:truthy +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +jobs: + verify: + name: Verify actions lockfile + runs-on: ubuntu-latest + timeout-minutes: 5 + env: + GH_TOKEN: ${{ github.token }} + steps: + - uses: actions/checkout@v4.4.0 + with: + persist-credentials: false + + # gh can't pin a binary extension to a commit, so pin only + # immutable releases, whose tag and binaries GitHub locks. + - name: Install gh-actions-lock + run: gh extension install github/gh-actions-lock --pin v0.4.1 + + - name: Verify actions.lock + run: gh actions-lock --verify