Skip to content

Lightpanda: the headless browser designed for AI and automation

ci: pin github actions to commit shas

Thibaud-Vdbcca00c022e11
diff --git a/.github/actions/install/action.yml b/.github/actions/install/action.yml
index aa139a4f6..6d52911b7 100644
--- a/.github/actions/install/action.yml
+++ b/.github/actions/install/action.yml
@@ -39,17 +39,19 @@ runs:
sudo apt-get install -y wget xz-utils ca-certificates clang make git
# Zig version used from the `minimum_zig_version` field in build.zig.zon
- - uses: mlugg/setup-zig@v2
+ - uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1
# Rust Toolchain for html5ever
- - uses: dtolnay/rust-toolchain@stable
- - uses: Swatinem/rust-cache@v2
+ - uses: dtolnay/rust-toolchain@2c7215f132e9ebf062739d9130488b56d53c060c # master
+ with:
+ toolchain: stable
+ - uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4 # v2.9.1
with:
workspaces: src/html5ever
- name: Cache v8
id: cache-v8
- uses: actions/cache@v5
+ uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
env:
cache-name: cache-v8
with:
diff --git a/.github/actions/v8-snapshot/action.yml b/.github/actions/v8-snapshot/action.yml
index 1fca406e7..b85b56d79 100644
--- a/.github/actions/v8-snapshot/action.yml
+++ b/.github/actions/v8-snapshot/action.yml
@@ -33,7 +33,7 @@ runs:
# Fetch the cache for snapshot
- name: Cache V8 snapshot
id: cache-v8-snapshot
- uses: actions/cache@v5
+ uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
env:
cache-name: cache-v8-snapshot
with:
diff --git a/.github/workflows/agent-regression.yml b/.github/workflows/agent-regression.yml
index 0b06b9b8e..431f88313 100644
--- a/.github/workflows/agent-regression.yml
+++ b/.github/workflows/agent-regression.yml
@@ -20,7 +20,7 @@ jobs:
timeout-minutes: 20
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
@@ -31,7 +31,7 @@ jobs:
run: zig build -Dsnapshot_path=../../snapshot.bin -Dprebuilt_v8_path=v8/libc_v8.a -Doptimize=ReleaseFast -Dcpu=x86_64
- name: upload artifact
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: lightpanda-build-release
path: |
@@ -47,13 +47,13 @@ jobs:
timeout-minutes: 25
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
repository: 'lightpanda-io/demo'
fetch-depth: 0
- name: download lightpanda release
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: lightpanda-build-release
path: bin
@@ -84,7 +84,7 @@ jobs:
- name: Send result to slack
if: ${{ !cancelled() }}
- uses: slackapi/[email protected]
+ uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1
with:
errors: true
method: files.uploadV2
diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml
index d724f86b4..604b98cf0 100644
--- a/.github/workflows/cla.yml
+++ b/.github/workflows/cla.yml
@@ -19,7 +19,7 @@ jobs:
steps:
- name: "CLA Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
- uses: contributor-assistant/[email protected]
+ uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_GH_PAT }}
diff --git a/.github/workflows/e2e-integration-test.yml b/.github/workflows/e2e-integration-test.yml
index 3fd59cb0f..5a52a23cd 100644
--- a/.github/workflows/e2e-integration-test.yml
+++ b/.github/workflows/e2e-integration-test.yml
@@ -20,7 +20,7 @@ jobs:
if: github.event.pull_request.draft == false
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
@@ -30,7 +30,7 @@ jobs:
run: zig build -Dprebuilt_v8_path=v8/libc_v8.a -Doptimize=ReleaseFast -Dcpu=x86_64
- name: upload artifact
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: lightpanda-build-release
path: |
@@ -45,7 +45,7 @@ jobs:
timeout-minutes: 15
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
repository: 'lightpanda-io/demo'
fetch-depth: 0
@@ -53,7 +53,7 @@ jobs:
- run: npm install
- name: download artifact
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: lightpanda-build-release
@@ -61,7 +61,7 @@ jobs:
- name: LP Cache
id: lp-cache
- uses: actions/cache@v5
+ uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
with:
path: /tmp/lp-cache
key: v1
@@ -74,7 +74,7 @@ jobs:
kill `cat LPD.pid`
- name: Send result to slack
- uses: slackapi/[email protected]
+ uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1
with:
errors: true
method: files.uploadV2
diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml
index 35b17e1a9..246e760d4 100644
--- a/.github/workflows/e2e-test.yml
+++ b/.github/workflows/e2e-test.yml
@@ -45,7 +45,7 @@ jobs:
if: github.event.pull_request.draft == false
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
@@ -56,7 +56,7 @@ jobs:
run: zig build -Dsnapshot_path=../../snapshot.bin -Dprebuilt_v8_path=v8/libc_v8.a -Doptimize=ReleaseFast -Dcpu=x86_64
- name: upload artifact
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: lightpanda-build-release
path: |
@@ -79,7 +79,7 @@ jobs:
timeout-minutes: 15
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
repository: 'lightpanda-io/demo'
fetch-depth: 0
@@ -87,7 +87,7 @@ jobs:
- run: npm install
- name: download lightpanda release
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: lightpanda-build-release
@@ -136,7 +136,7 @@ jobs:
timeout-minutes: 15
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
repository: 'lightpanda-io/demo'
fetch-depth: 0
@@ -144,7 +144,7 @@ jobs:
- run: npm install
- name: download lightpanda release
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: lightpanda-build-release
@@ -200,13 +200,13 @@ jobs:
if: github.event_name != 'pull_request'
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
repository: 'lightpanda-io/demo'
fetch-depth: 0
- name: download artifact
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: lightpanda-build-release
@@ -254,7 +254,7 @@ jobs:
timeout-minutes: 15
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
repository: 'lightpanda-io/demo'
fetch-depth: 0
@@ -262,7 +262,7 @@ jobs:
- run: npm install
- name: download artifact
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: lightpanda-build-release
@@ -348,7 +348,7 @@ jobs:
echo "${{github.sha}}" > commit.txt
- name: upload artifact
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: bench-results
path: |
@@ -376,7 +376,7 @@ jobs:
steps:
- name: download artifact
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: bench-results
@@ -394,7 +394,7 @@ jobs:
steps:
- name: download artifact
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: lightpanda-build-release
@@ -410,13 +410,13 @@ jobs:
timeout-minutes: 5
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
repository: 'lightpanda-io/demo'
fetch-depth: 0
- name: download artifact
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: lightpanda-build-release
path: bin
@@ -440,7 +440,7 @@ jobs:
steps:
- name: download artifact
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: lightpanda-build-release
diff --git a/.github/workflows/package-debian.yml b/.github/workflows/package-debian.yml
index 399885fa3..0a754a097 100644
--- a/.github/workflows/package-debian.yml
+++ b/.github/workflows/package-debian.yml
@@ -30,7 +30,7 @@ jobs:
timeout-minutes: 10
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Install packaging deps
run: |
@@ -38,7 +38,7 @@ jobs:
apt-get install -y --no-install-recommends dpkg-dev
- name: Download linux binary
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: lightpanda-${{ env.ARCH }}-${{ env.OS }}
path: .
@@ -70,7 +70,7 @@ jobs:
dpkg-deb --build --root-owner-group "$ROOT"
- name: Upload Debian package to release
- uses: ncipollo/release-action@v1
+ uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0
with:
allowUpdates: true
artifacts: lightpanda_${{ env.PKGVER }}_${{ env.DEB_ARCH }}.deb
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 96cb194c7..16f9ea0f6 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -46,7 +46,7 @@ jobs:
timeout-minutes: 20
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
@@ -72,7 +72,7 @@ jobs:
aws s3 cp lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/agent-${RELEASE}/lightpanda-agent-${{ env.ARCH }}-${{ env.OS }}
- name: Upload the build
- uses: ncipollo/release-action@v1
+ uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0
with:
allowUpdates: true
artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
@@ -80,7 +80,7 @@ jobs:
makeLatest: true
- name: Share binary with packaging jobs
- uses: actions/upload-artifact@v4
+ uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: lightpanda-${{ env.ARCH }}-${{ env.OS }}
path: lightpanda-${{ env.ARCH }}-${{ env.OS }}
@@ -106,7 +106,7 @@ jobs:
timeout-minutes: 20
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
@@ -132,7 +132,7 @@ jobs:
aws s3 cp lightpanda-${{ env.ARCH }}-${{ env.OS }} s3://lpd-nightly-build/agent-${RELEASE}/lightpanda-agent-${{ env.ARCH }}-${{ env.OS }}
- name: Upload the build
- uses: ncipollo/release-action@v1
+ uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0
with:
allowUpdates: true
artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
@@ -149,20 +149,20 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
- - uses: actions/setup-go@v5
+ - uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
with:
go-version: stable
- name: Download linux x86_64 binary (to read the version)
- uses: actions/download-artifact@v4
+ uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
with:
name: lightpanda-x86_64-linux
- - uses: docker/login-action@v4
+ - uses: docker/login-action@af1e73f918a031802d376d3c8bbc3fe56130a9b0 # v4.4.0
with:
registry: ghcr.io
username: ${{ github.actor }}
@@ -194,7 +194,7 @@ jobs:
steps:
- name: Generate token for browser-docker
id: app-token
- uses: actions/create-github-app-token@v2
+ uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2.2.2
with:
app-id: ${{ secrets.DISTRIBUTION_APP_ID }}
private-key: ${{ secrets.DISTRIBUTION_APP_PRIVATE_KEY }}
@@ -215,7 +215,7 @@ jobs:
steps:
- name: Generate token for homebrew-browser
id: app-token
- uses: actions/create-github-app-token@v2
+ uses: actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349 # v2.2.2
with:
app-id: ${{ secrets.DISTRIBUTION_APP_ID }}
private-key: ${{ secrets.DISTRIBUTION_APP_PRIVATE_KEY }}
diff --git a/.github/workflows/wpt.yml b/.github/workflows/wpt.yml
index 93a70b74d..c698cce9d 100644
--- a/.github/workflows/wpt.yml
+++ b/.github/workflows/wpt.yml
@@ -27,7 +27,7 @@ jobs:
timeout-minutes: 20
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
@@ -40,7 +40,7 @@ jobs:
run: zig build -Dwpt_extensions -Dprebuilt_v8_path=v8/libc_v8.a -Doptimize=ReleaseFast -Dcpu=generic
- name: upload artifact
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: lightpanda-build-release
path: |
@@ -54,7 +54,7 @@ jobs:
timeout-minutes: 15
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
repository: 'lightpanda-io/demo'
fetch-depth: 0
@@ -64,7 +64,7 @@ jobs:
CGO_ENABLED=0 go build
- name: upload artifact
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: wptrunner
path: |
@@ -82,7 +82,7 @@ jobs:
timeout-minutes: 600
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
ref: fork
repository: 'lightpanda-io/wpt'
@@ -96,14 +96,14 @@ jobs:
run: ./wpt manifest
- name: download lightpanda release
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: lightpanda-build-release
- run: chmod a+x ./lightpanda
- name: download wptrunner
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: wptrunner
@@ -121,7 +121,7 @@ jobs:
echo "${{github.sha}}" > commit.txt
- name: upload artifact
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: wpt-results
path: |
@@ -144,7 +144,7 @@ jobs:
steps:
- name: download artifact
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: wpt-results
@@ -158,7 +158,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
repository: 'lightpanda-io/demo'
fetch-depth: 0
@@ -171,7 +171,7 @@ jobs:
./wptdiff/wptdiff --completion |tee completion.log
- name: Send completion to slack
- uses: slackapi/[email protected]
+ uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1
with:
errors: true
method: files.uploadV2
@@ -186,7 +186,7 @@ jobs:
./wptdiff/wptdiff |tee diff.log
- name: Send regression to slack
- uses: slackapi/[email protected]
+ uses: slackapi/slack-github-action@af78098f536edbc4de71162a307590698245be95 # v3.0.1
with:
errors: true
method: files.uploadV2
diff --git a/.github/workflows/zig-test.yml b/.github/workflows/zig-test.yml
index 28c8c672b..cd8b16042 100644
--- a/.github/workflows/zig-test.yml
+++ b/.github/workflows/zig-test.yml
@@ -43,10 +43,10 @@ jobs:
if: github.event.pull_request.draft == false
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
# Zig version used from the `minimum_zig_version` field in build.zig.zon
- - uses: mlugg/setup-zig@v2
+ - uses: mlugg/setup-zig@d1434d08867e3ee9daa34448df10607b98908d29 # v2.2.1
- name: Run zig fmt
id: fmt
@@ -62,7 +62,7 @@ jobs:
if: github.event.pull_request.draft == false
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
@@ -83,7 +83,7 @@ jobs:
if: github.event.pull_request.draft == false
steps:
- - uses: actions/checkout@v6
+ - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
@@ -97,7 +97,7 @@ jobs:
echo "${{github.sha}}" > commit.txt
- name: upload artifact
- uses: actions/upload-artifact@v7
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: bench-results
path: |
@@ -122,7 +122,7 @@ jobs:
steps:
- name: download artifact
- uses: actions/download-artifact@v8
+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: bench-results