Skip to content

Commit

Permalink
Pin actions/checkout's own workflows to a known, good, stable version. (
Browse files Browse the repository at this point in the history
#1776)

* Pin actions/checkout's own workflows to a known, good, stable version.

* fixed failing unit test

* fix unit test
  • Loading branch information
jww3 authored Jun 12, 2024
1 parent b17fe1e commit 6ccd57f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.6

- name: Set Node.js 20.x
uses: actions/setup-node@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v4.1.6

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/licensed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
runs-on: ubuntu-latest
name: Check licenses
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.6
- run: npm ci
- run: npm run licensed-check
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20.x
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.6
- run: npm ci
- run: npm run build
- run: npm run format-check
Expand All @@ -37,7 +37,7 @@ jobs:
steps:
# Clone this repo
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.1.6

# Basic checkout
- name: Checkout basic
Expand Down Expand Up @@ -202,7 +202,7 @@ jobs:
steps:
# Clone this repo
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.1.6

# Basic checkout using git
- name: Checkout basic
Expand Down Expand Up @@ -234,7 +234,7 @@ jobs:
steps:
# Clone this repo
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.1.6

# Basic checkout using git
- name: Checkout basic
Expand Down Expand Up @@ -264,13 +264,13 @@ jobs:
steps:
# Clone this repo
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.1.6
with:
path: v4
path: localClone

# Basic checkout using git
- name: Checkout basic
uses: ./v4
uses: ./localClone
with:
ref: test-data/v2/basic
- name: Verify basic
Expand All @@ -292,6 +292,6 @@ jobs:
# needed to make checkout post cleanup succeed
- name: Fix Checkout v4
uses: actions/checkout@v4
uses: actions/checkout@v4.1.6
with:
path: v4
path: localClone
2 changes: 1 addition & 1 deletion .github/workflows/update-main-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
# Note this update workflow can also be used as a rollback tool.
# For that reason, it's best to pin `actions/checkout` to a known, stable version
# (typically, about two releases back).
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.6
with:
fetch-depth: 0
- name: Git config
Expand Down

0 comments on commit 6ccd57f

Please sign in to comment.