Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Use commit hashes instead of release tags in GitHub Actions workflow …
Browse files Browse the repository at this point in the history
…actions, as per OpenSSF Scorecard best practices (https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinned-dependencies).

RELNOTES: n/a

PiperOrigin-RevId: 568295292
Change-Id: Ib3ead92f8ddd469141f54387b1ccb83d1929583a
  • Loading branch information
12wrigja authored and copybara-github committed Sep 25, 2023
1 parent c0597fa commit b88b19e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/draft-github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/[email protected]
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
# We need to fetch the full repository in order to write complete
# release notes.
fetch-depth: 0
- uses: actions/setup-node@v3
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: current
- name: Run Release Draft Script
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ossf_scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

steps:
- name: "Checkout code"
uses: actions/checkout@v4.0.0 # v3.1.0
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
with:
persist-credentials: false

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-on-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
runs-on: ubuntu-latest
steps:
# This action checks out at the commit of the tagged release.
- uses: actions/checkout@v4.0.0
- uses: actions/3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
# Install all deps in preparation for creating a release.
# Unlike publishing, this is done using the normal NPM registry
# to download deps.
- uses: actions/setup-node@v3
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: current
# TODO: We should check in a lockfile and use npm ci here instead.
Expand All @@ -29,7 +29,7 @@ jobs:
# Re-setup node using Wombat Dressing Room as the registry
# The actual NodeJS binaries and such are cached, so doing this
# twice isn't particularly expensive.
- uses: actions/setup-node@v3
- uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: current
registry-url: https://wombat-dressing-room.appspot.com
Expand Down

0 comments on commit b88b19e

Please sign in to comment.