Skip to content

Commit

Permalink
build: pin GitHub Actions using hashes
Browse files Browse the repository at this point in the history
Pin GitHub Actions using hashes to prevent tampering. Tags are added as
comments and both will be updated by Dependabot in pull requests.

Make explicit again that pnpm when run in CI is run with
`--frozen-lockfile`.
  • Loading branch information
matijs committed May 22, 2024
1 parent afaf318 commit acfc578
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@ jobs:

steps:
- name: Download code from GitHub
uses: actions/[email protected].2
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6

- name: Install pnpm package manager
uses: pnpm/action-setup@v3.0.0
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0

- name: Set up Node.js version
uses: actions/[email protected]
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version-file: .nvmrc
cache: pnpm

- name: Install dependencies specified in package.json
run: |
pnpm install
pnpm install --frozen-lockfile
pnpm ls --recursive
- name: Run the lint script in package.json scripts
Expand All @@ -49,22 +49,22 @@ jobs:

steps:
- name: Download code from GitHub
uses: actions/[email protected].2
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
token: ${{ secrets.GH_REPO_TOKEN }}

- name: Install pnpm package manager
uses: pnpm/action-setup@v3.0.0
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0

- name: Set up Node.js version
uses: actions/[email protected]
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version-file: .nvmrc
cache: pnpm

- name: Install dependencies as specified in package.json
run: |
pnpm install
pnpm install --frozen-lockfile
pnpm ls --recursive
- name: Run the build script in package.json scripts
Expand Down

0 comments on commit acfc578

Please sign in to comment.