mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 11:07:10 +00:00
ci: pin the first-party actions to commit shas (#86)
third-party actions here were already sha-pinned; the actions/* ones were on major tags, which are mutable and can be repointed. same treatment and same trailing version comment, so an upgrade stays a readable diff.
This commit is contained in:
2 files changed
+35
-35
No files matched your search
@@ -10,7 +10,7 @@ runs:
|
|||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- name: Set up the JDKs
|
- name: Set up the JDKs
|
||||||
uses: actions/setup-java@v5
|
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
# The metro gradle plugin folio builds with needs a 21 runtime; the
|
# The metro gradle plugin folio builds with needs a 21 runtime; the
|
||||||
@@ -28,7 +28,7 @@ runs:
|
|||||||
|
|
||||||
- name: Cache Gradle
|
- name: Cache Gradle
|
||||||
if: inputs.platform != 'ios'
|
if: inputs.platform != 'ios'
|
||||||
uses: actions/cache@v6
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.gradle/caches
|
~/.gradle/caches
|
||||||
@@ -50,7 +50,7 @@ runs:
|
|||||||
# land before `make sanderling-ios`, which is what consumes them.
|
# land before `make sanderling-ios`, which is what consumes them.
|
||||||
- name: Cache the companion and runner bundles
|
- name: Cache the companion and runner bundles
|
||||||
if: inputs.platform == 'ios'
|
if: inputs.platform == 'ios'
|
||||||
uses: actions/cache@v6
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
internal/driver/ioscompanion/companionassets/assets
|
internal/driver/ioscompanion/companionassets/assets
|
||||||
|
|||||||
+32
-32
@@ -34,16 +34,16 @@ jobs:
|
|||||||
name: Check (tests)
|
name: Check (tests)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v7
|
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v5
|
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: "17"
|
java-version: "17"
|
||||||
@@ -52,7 +52,7 @@ jobs:
|
|||||||
uses: android-actions/setup-android@40fd30fb8d7440372e1316f5d1809ec01dcd3699 # v4.0.1
|
uses: android-actions/setup-android@40fd30fb8d7440372e1316f5d1809ec01dcd3699 # v4.0.1
|
||||||
|
|
||||||
- name: Set up Node 24
|
- name: Set up Node 24
|
||||||
uses: actions/setup-node@v7
|
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
||||||
with:
|
with:
|
||||||
node-version: "24"
|
node-version: "24"
|
||||||
cache: npm
|
cache: npm
|
||||||
@@ -64,7 +64,7 @@ jobs:
|
|||||||
bun-version: "1.3.14"
|
bun-version: "1.3.14"
|
||||||
|
|
||||||
- name: Cache bun store
|
- name: Cache bun store
|
||||||
uses: actions/cache@v6
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||||
with:
|
with:
|
||||||
path: ~/.bun/install/cache
|
path: ~/.bun/install/cache
|
||||||
key: bun-${{ runner.os }}-${{ hashFiles('replay-ui/bun.lock') }}
|
key: bun-${{ runner.os }}-${{ hashFiles('replay-ui/bun.lock') }}
|
||||||
@@ -97,7 +97,7 @@ jobs:
|
|||||||
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
|
echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
|
||||||
|
|
||||||
- name: Cache Gradle
|
- name: Cache Gradle
|
||||||
uses: actions/cache@v6
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.gradle/caches
|
~/.gradle/caches
|
||||||
@@ -123,7 +123,7 @@ jobs:
|
|||||||
# JAVA_HOME after `make test` rather than installing both up front
|
# JAVA_HOME after `make test` rather than installing both up front
|
||||||
# leaves every step above this one on exactly the JDK it ran on before.
|
# leaves every step above this one on exactly the JDK it ran on before.
|
||||||
- name: Set up JDK 21 for folio
|
- name: Set up JDK 21 for folio
|
||||||
uses: actions/setup-java@v5
|
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: "21"
|
java-version: "21"
|
||||||
@@ -135,10 +135,10 @@ jobs:
|
|||||||
name: Check (browser)
|
name: Check (browser)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v7
|
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
cache: true
|
cache: true
|
||||||
@@ -153,7 +153,7 @@ jobs:
|
|||||||
name: Check (workflows)
|
name: Check (workflows)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
|
|
||||||
# Pinned so a new actionlint release cannot change what CI enforces,
|
# Pinned so a new actionlint release cannot change what CI enforces,
|
||||||
# for the same reason the buf version above is spelled out. shellcheck
|
# for the same reason the buf version above is spelled out. shellcheck
|
||||||
@@ -195,10 +195,10 @@ jobs:
|
|||||||
MAX_STEPS: "200"
|
MAX_STEPS: "200"
|
||||||
DURATION: 20m
|
DURATION: 20m
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v7
|
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
cache: true
|
cache: true
|
||||||
@@ -228,7 +228,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload the run
|
- name: Upload the run
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||||
with:
|
with:
|
||||||
name: folio-android
|
name: folio-android
|
||||||
path: runs/
|
path: runs/
|
||||||
@@ -245,10 +245,10 @@ jobs:
|
|||||||
IOS_DEVICE: iPhone 17 Pro
|
IOS_DEVICE: iPhone 17 Pro
|
||||||
IOS_RUNTIME: iOS 26.2
|
IOS_RUNTIME: iOS 26.2
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v7
|
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
cache: true
|
cache: true
|
||||||
@@ -328,7 +328,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload the run
|
- name: Upload the run
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||||
with:
|
with:
|
||||||
name: folio-ios
|
name: folio-ios
|
||||||
path: runs/
|
path: runs/
|
||||||
@@ -343,10 +343,10 @@ jobs:
|
|||||||
MAX_STEPS: "240"
|
MAX_STEPS: "240"
|
||||||
DURATION: 20m
|
DURATION: 20m
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v7
|
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
cache: true
|
cache: true
|
||||||
@@ -372,7 +372,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload the run
|
- name: Upload the run
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||||
with:
|
with:
|
||||||
name: folio-web
|
name: folio-web
|
||||||
path: runs/
|
path: runs/
|
||||||
@@ -400,10 +400,10 @@ jobs:
|
|||||||
MAX_STEPS: "80"
|
MAX_STEPS: "80"
|
||||||
DURATION: 10m
|
DURATION: 10m
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v7
|
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
cache: true
|
cache: true
|
||||||
@@ -493,7 +493,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload the run
|
- name: Upload the run
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
||||||
with:
|
with:
|
||||||
name: replay-ui-runs
|
name: replay-ui-runs
|
||||||
path: runs/
|
path: runs/
|
||||||
@@ -525,7 +525,7 @@ jobs:
|
|||||||
tag: ${{ steps.next.outputs.tag }}
|
tag: ${{ steps.next.outputs.tag }}
|
||||||
previous_tag: ${{ steps.next.outputs.previous_tag }}
|
previous_tag: ${{ steps.next.outputs.previous_tag }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
with:
|
with:
|
||||||
# The version is counted off the tags, so the tags have to be here.
|
# The version is counted off the tags, so the tags have to be here.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
@@ -562,7 +562,7 @@ jobs:
|
|||||||
# caps a granular one at 90 days, so a token here would break quarterly.
|
# caps a granular one at 90 days, so a token here would break quarterly.
|
||||||
id-token: write
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.release-tag.outputs.tag }}
|
ref: ${{ needs.release-tag.outputs.tag }}
|
||||||
# `npm ci` below runs dependency lifecycle scripts, and no step in
|
# `npm ci` below runs dependency lifecycle scripts, and no step in
|
||||||
@@ -576,7 +576,7 @@ jobs:
|
|||||||
# bundled npm clears that floor (11.17.0), which is why it is pinned here
|
# bundled npm clears that floor (11.17.0), which is why it is pinned here
|
||||||
# rather than upgrading npm over the top of an older one.
|
# rather than upgrading npm over the top of an older one.
|
||||||
- name: Set up Node 24
|
- name: Set up Node 24
|
||||||
uses: actions/setup-node@v7
|
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
||||||
with:
|
with:
|
||||||
node-version: "24"
|
node-version: "24"
|
||||||
registry-url: "https://registry.npmjs.org"
|
registry-url: "https://registry.npmjs.org"
|
||||||
@@ -627,20 +627,20 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.release-tag.outputs.tag }}
|
ref: ${{ needs.release-tag.outputs.tag }}
|
||||||
# GoReleaser reads the tag history for its changelog.
|
# GoReleaser reads the tag history for its changelog.
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v7
|
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
||||||
with:
|
with:
|
||||||
go-version-file: go.mod
|
go-version-file: go.mod
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v5
|
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: "17"
|
java-version: "17"
|
||||||
@@ -649,7 +649,7 @@ jobs:
|
|||||||
uses: android-actions/setup-android@40fd30fb8d7440372e1316f5d1809ec01dcd3699 # v4.0.1
|
uses: android-actions/setup-android@40fd30fb8d7440372e1316f5d1809ec01dcd3699 # v4.0.1
|
||||||
|
|
||||||
- name: Cache Gradle
|
- name: Cache Gradle
|
||||||
uses: actions/cache@v6
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.gradle/caches
|
~/.gradle/caches
|
||||||
@@ -709,7 +709,7 @@ jobs:
|
|||||||
name: github-pages
|
name: github-pages
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v7
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||||
|
|
||||||
- name: Install pandoc
|
- name: Install pandoc
|
||||||
run: sudo apt-get update && sudo apt-get install -y pandoc
|
run: sudo apt-get update && sudo apt-get install -y pandoc
|
||||||
@@ -722,11 +722,11 @@ jobs:
|
|||||||
# which holds three ordinary files. _assets is underscore-prefixed, not
|
# which holds three ordinary files. _assets is underscore-prefixed, not
|
||||||
# hidden, and deploy-pages serves the artifact without running Jekyll, so
|
# hidden, and deploy-pages serves the artifact without running Jekyll, so
|
||||||
# it needs no .nojekyll either.
|
# it needs no .nojekyll either.
|
||||||
- uses: actions/upload-pages-artifact@v5
|
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
|
||||||
with:
|
with:
|
||||||
path: build/site
|
path: build/site
|
||||||
|
|
||||||
- uses: actions/deploy-pages@v5
|
- uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0
|
||||||
id: deployment
|
id: deployment
|
||||||
|
|
||||||
# The one status check to point branch protection at. Without `if: always()`
|
# The one status check to point branch protection at. Without `if: always()`
|
||||||
|
|||||||
Reference in new issue
Block a user