chore(actions): bump step-security/harden-runner from 2.11.1 to 2.12.0 #1150
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
merge_group: | |
pull_request: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
PNPM_VERSION: 10.9.0 | |
permissions: read-all | |
jobs: | |
commitlint: | |
name: Commit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
with: | |
egress-policy: audit | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 | |
name: Install pnpm | |
with: | |
version: ${{ env.PNPM_VERSION }} | |
- name: Install with pnpm | |
run: pnpm install --frozen-lockfile | |
- name: Check commit message | |
uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6.2.1 | |
with: | |
configFile: commitlint.config.cjs | |
failOnWarnings: false | |
helpURL: https://github.com/ducktors/turborepo-remote-cache#how-to-commit | |
build: | |
runs-on: ${{ matrix.os }} | |
name: Build | |
strategy: | |
matrix: | |
node-version: [20.x, 22.x] | |
os: [ubuntu-latest] | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
name: Checkout | |
- name: Use Node.js | |
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0 | |
name: Install pnpm | |
with: | |
version: ${{ env.PNPM_VERSION }} | |
- name: Install with pnpm | |
run: pnpm install | |
- name: Lint code | |
run: pnpm lint | |
- name: Build | |
run: pnpm build | |
docker: | |
name: Test Docker Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
with: | |
egress-policy: audit | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0 | |
- name: Get package version | |
id: package-version | |
uses: martinbeentjes/npm-get-version-action@3cf273023a0dda27efcd3164bdfb51908dd46a5b # main | |
with: | |
path: . | |
- name: Build Docker image | |
uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0 | |
with: | |
context: . | |
file: Dockerfile | |
push: false | |
load: true | |
tags: turborepo-remote-cache:test | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
build-args: | | |
PACKAGE_VERSION=${{ steps.package-version.outputs.current-version}} | |
- name: Test Docker image | |
run: | | |
docker image ls | |
docker inspect turborepo-remote-cache:test | |