Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

ci: switch from SHA-pinned actions to native actions.lock (#3274)

Mohamed Bassem8b63540e099d
diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock
new file mode 100644
index 00000000..be0885ca
--- /dev/null
+++ b/.github/workflows/actions.lock
@@ -0,0 +1,121 @@
+# This file is machine-generated by `gh actions-lock`.
+# Do not edit by hand; run `gh actions-lock` to update.
+# Docs: https://gh.io/actions-lockfile
+version: 'v0.0.3'
+workflows:
+ '.github/workflows/android.yml':
+ - 'actions/[email protected]'
+ - 'actions/[email protected]'
+ - 'actions/[email protected]'
+ - 'actions/[email protected]'
+ - 'android-actions/[email protected]'
+ '.github/workflows/chrome.yml':
+ - 'actions/[email protected]'
+ - 'docker/[email protected]'
+ - 'docker/[email protected]'
+ - 'docker/[email protected]'
+ '.github/workflows/ci.yml':
+ - 'actions/[email protected]'
+ - 'actions/[email protected]'
+ - 'actions/[email protected]'
+ - 'docker/[email protected]'
+ '.github/workflows/cli.yml':
+ - 'actions/[email protected]'
+ - 'actions/[email protected]'
+ '.github/workflows/docker.yml':
+ - 'actions/[email protected]'
+ - 'docker/[email protected]'
+ - 'docker/[email protected]'
+ - 'docker/[email protected]'
+ '.github/workflows/extension.yml':
+ - 'actions/[email protected]'
+ - 'actions/[email protected]'
+ - 'actions/[email protected]'
+ '.github/workflows/ios.yml':
+ - 'actions/[email protected]'
+ - 'actions/[email protected]'
+ - 'actions/[email protected]'
+ '.github/workflows/mcp.yml':
+ - 'actions/[email protected]'
+ - 'actions/[email protected]'
+ '.github/workflows/pullfrog.yml':
+ - 'actions/[email protected]'
+ - 'pullfrog/[email protected]'
+ '.github/workflows/sdk.yml':
+ - 'actions/[email protected]'
+ - 'actions/[email protected]'
+dependencies:
+ 'actions/[email protected]':
+ ref: 'v4.3.1'
+ commit: 'sha1-34e114876b0b11c390a56381ad16ebd13914f8d5'
+ owner_id: 44036562
+ repo_id: 197814629
+ 'actions/[email protected]':
+ ref: 'v6.1.0'
+ commit: 'sha1-d23441a48e516b6c34aea4fa41551a30e30af803'
+ owner_id: 44036562
+ repo_id: 197814629
+ 'actions/[email protected]':
+ ref: 'v4.8.0'
+ commit: 'sha1-c1e323688fd81a25caa38c78aa6df2d33d3e20d9'
+ owner_id: 44036562
+ repo_id: 196057608
+ 'actions/[email protected]':
+ ref: 'v4.4.0'
+ commit: 'sha1-49933ea5288caeca8642d1e84afbd3f7d6820020'
+ owner_id: 44036562
+ repo_id: 189476904
+ 'actions/[email protected]':
+ ref: 'v4.6.2'
+ commit: 'sha1-ea165f8d65b6e75b540449e92b4886f43607fa02'
+ owner_id: 44036562
+ repo_id: 192625955
+ 'android-actions/[email protected]':
+ ref: 'v3.2.2'
+ commit: 'sha1-9fc6c4e9069bf8d3d10b2204b1fb8f6ef7065407'
+ owner_id: 69522701
+ repo_id: 286780795
+ 'docker/[email protected]':
+ ref: 'v6.9.0'
+ commit: 'sha1-3acf805d94d93a86cce4ca44798a76464a75b88c'
+ owner_id: 5429470
+ repo_id: 301684204
+ 'docker/[email protected]':
+ ref: 'v5.4.0'
+ commit: 'sha1-ca052bb54ab0790a636c9b5f226502c73d547a25'
+ owner_id: 5429470
+ repo_id: 241092383
+ 'docker/[email protected]':
+ ref: 'v3.7.0'
+ commit: 'sha1-c94ce9fb468520275223c153574b00df6fe4bcc9'
+ owner_id: 5429470
+ repo_id: 287743349
+ 'docker/[email protected]':
+ ref: 'v3.12.0'
+ commit: 'sha1-8d2750c68a42422c14e847fe6c8ac0403b4cbd6f'
+ owner_id: 5429470
+ repo_id: 288485773
+ ref: '8.2.1'
+ commit: 'sha1-c7b66a9c327a43a8fa7c0158e7f30d6040d2481e'
+ owner_id: 12504344
+ repo_id: 161909611
+ ref: 'v6.0.8'
+ commit: 'sha1-0e279bb959325dab635dd2c09392533439d90093'
+ owner_id: 21320719
+ repo_id: 262289747
+ 'pullfrog/[email protected]':
+ ref: 'v0.1.110'
+ commit: 'sha1-895164fc90f5c493e72693c919c6cf269af158eb'
+ owner_id: 223181266
+ repo_id: 1032749534
diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml
index a7fb3254..322502b1 100644
--- a/.github/workflows/android.yml
+++ b/.github/workflows/android.yml
@@ -10,26 +10,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup repo
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
+ uses: actions/[email protected]
with:
persist-credentials: false
- name: Setup
- uses: ./tooling/github/setup
+ uses: $/tooling/github/setup
- name: Set up JDK 17
- uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4
+ uses: actions/[email protected]
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Android SDK
- uses: android-actions/setup-android@9fc6c4e9069bf8d3d10b2204b1fb8f6ef7065407 # v3
+ uses: android-actions/[email protected]
with:
packages: 'platform-tools'
- name: Setup Expo
- uses: expo/expo-github-action@c7b66a9c327a43a8fa7c0158e7f30d6040d2481e # v8
+ uses: expo/[email protected]
with:
expo-version: latest
eas-version: latest
@@ -44,7 +44,7 @@ jobs:
EXPO_PUBLIC_REVENUECAT_ANDROID_API_KEY: ${{ secrets.EXPO_PUBLIC_REVENUECAT_ANDROID_API_KEY }}
- name: Upload AAB artifact
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
+ uses: actions/[email protected]
with:
name: karakeep-android
path: ${{ github.workspace }}/app-release.aab
diff --git a/.github/workflows/chrome.yml b/.github/workflows/chrome.yml
index 3b5f0955..555dd410 100644
--- a/.github/workflows/chrome.yml
+++ b/.github/workflows/chrome.yml
@@ -51,15 +51,15 @@ jobs:
contents: read
steps:
- - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
+ - uses: actions/[email protected]
with:
persist-credentials: false
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
+ uses: docker/[email protected]
- name: Build image
- uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
+ uses: docker/[email protected]
with:
build-args: |
BUILD_REVISION=${{ github.sha }}
@@ -97,15 +97,15 @@ jobs:
packages: write
steps:
- - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
+ - uses: actions/[email protected]
with:
persist-credentials: false
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
+ uses: docker/[email protected]
- name: Login to GitHub Container Registry
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
+ uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
@@ -121,7 +121,7 @@ jobs:
fi
- name: Build and publish architecture image
- uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
+ uses: docker/[email protected]
with:
build-args: |
BUILD_REVISION=${{ github.sha }}
@@ -148,10 +148,10 @@ jobs:
steps:
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
+ uses: docker/[email protected]
- name: Login to GitHub Container Registry
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
+ uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 8e1d1795..dbd476c0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -16,15 +16,30 @@ env:
FORCE_COLOR: 3
jobs:
+ actions-lock:
+ runs-on: ubuntu-latest
+ env:
+ GH_TOKEN: ${{ github.token }}
+ steps:
+ - uses: actions/[email protected]
+ with:
+ persist-credentials: false
+
+ - name: Install gh-actions-lock
+ run: gh extension install github/gh-actions-lock --pin v0.4.0
+
+ - name: Verify actions.lock
+ run: gh actions-lock --verify
+
lint:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
+ - uses: actions/[email protected]
with:
persist-credentials: false
- name: Setup
- uses: ./tooling/github/setup
+ uses: $/tooling/github/setup
- name: Lint
run: pnpm lint && pnpm exec sherif
@@ -32,12 +47,12 @@ jobs:
format:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
+ - uses: actions/[email protected]
with:
persist-credentials: false
- name: Setup
- uses: ./tooling/github/setup
+ uses: $/tooling/github/setup
- name: Format
run: pnpm format
@@ -45,24 +60,24 @@ jobs:
typecheck:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
+ - uses: actions/[email protected]
with:
persist-credentials: false
- name: Setup
- uses: ./tooling/github/setup
+ uses: $/tooling/github/setup
- name: Typecheck
run: pnpm typecheck
tests:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
+ - uses: actions/[email protected]
with:
persist-credentials: false
- name: Setup
- uses: ./tooling/github/setup
+ uses: $/tooling/github/setup
- name: Shared Package Tests
working-directory: packages/shared
@@ -87,7 +102,7 @@ jobs:
# The default docker driver can't import the registry build cache that
# the e2e docker-compose file uses, so build with a buildx builder.
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
+ uses: docker/[email protected]
- name: E2E Tests
working-directory: packages/e2e_tests
@@ -95,7 +110,7 @@ jobs:
- name: Upload Docker Logs
if: failure()
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
+ uses: actions/[email protected]
with:
name: e2e-docker-logs-${{ github.sha }}-${{ github.run_attempt }}
path: packages/e2e_tests/setup/docker-logs/
@@ -103,12 +118,12 @@ jobs:
open-api-spec:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
+ - uses: actions/[email protected]
with:
persist-credentials: false
- name: Setup
- uses: ./tooling/github/setup
+ uses: $/tooling/github/setup
- name: Regenerate OpenAPI spec
working-directory: packages/open-api
diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml
index abebb8c6..991418ec 100644
--- a/.github/workflows/cli.yml
+++ b/.github/workflows/cli.yml
@@ -13,12 +13,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
+ - uses: actions/[email protected]
with:
persist-credentials: false
- name: Setup
- uses: ./tooling/github/setup
+ uses: $/tooling/github/setup
- name: Set canary version
if: github.event_name == 'workflow_dispatch'
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml
index f34ab1ad..fc9765b7 100644
--- a/.github/workflows/docker.yml
+++ b/.github/workflows/docker.yml
@@ -23,14 +23,14 @@ jobs:
contents: read
steps:
- - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
+ - uses: actions/[email protected]
with:
persist-credentials: false
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
+ uses: docker/[email protected]
- name: Login to Github Registry
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
+ uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
@@ -41,7 +41,7 @@ jobs:
# file: pushes to main get the 'latest' tags, releases get the
# release-specific ones.
- name: Build images (${{ matrix.arch }})
- uses: docker/bake-action@3acf805d94d93a86cce4ca44798a76464a75b88c # v6.9.0
+ uses: docker/[email protected]
env:
ARCH: ${{ matrix.arch }}
RELEASE: ${{ github.event_name == 'release' && github.event.release.name || '' }}
@@ -78,10 +78,10 @@ jobs:
tags_release: ghcr.io/hoarder-app/hoarder:${{ github.event.release.name }},ghcr.io/karakeep-app/karakeep:${{ github.event.release.name }},ghcr.io/hoarder-app/hoarder:release,ghcr.io/karakeep-app/karakeep:release
steps:
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
+ uses: docker/[email protected]
- name: Login to Github Registry
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
+ uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
diff --git a/.github/workflows/extension.yml b/.github/workflows/extension.yml
index b2728e8c..0bc8e25c 100644
--- a/.github/workflows/extension.yml
+++ b/.github/workflows/extension.yml
@@ -10,12 +10,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup repo
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
+ uses: actions/[email protected]
with:
persist-credentials: false
- name: Setup
- uses: ./tooling/github/setup
+ uses: $/tooling/github/setup
- name: Build the extension (chrome)
working-directory: apps/browser-extension
@@ -28,13 +28,13 @@ jobs:
run: pnpm run build --outDir dist-firefox
- name: Upload Extension Archive (chrome)
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
+ uses: actions/[email protected]
with:
name: karakeep-extension-chrome
path: apps/browser-extension/dist-chrome/*
- name: Upload Extension Archive (firefox)
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
+ uses: actions/[email protected]
with:
name: karakeep-extension-firefox
path: apps/browser-extension/dist-firefox/*
diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml
index c84f3bfc..b1217d83 100644
--- a/.github/workflows/ios.yml
+++ b/.github/workflows/ios.yml
@@ -10,15 +10,15 @@ jobs:
runs-on: xcode-27
steps:
- name: Setup repo
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
+ uses: actions/[email protected]
with:
persist-credentials: false
- name: Setup
- uses: ./tooling/github/setup
+ uses: $/tooling/github/setup
- name: Setup Expo
- uses: expo/expo-github-action@c7b66a9c327a43a8fa7c0158e7f30d6040d2481e # v8
+ uses: expo/[email protected]
with:
expo-version: latest
eas-version: latest
@@ -33,7 +33,7 @@ jobs:
EXPO_PUBLIC_REVENUECAT_IOS_API_KEY: ${{ secrets.EXPO_PUBLIC_REVENUECAT_IOS_API_KEY }}
- name: Upload IPA artifact
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
+ uses: actions/[email protected]
with:
name: karakeep-ios
path: ${{ github.workspace }}/app-release.ipa
diff --git a/.github/workflows/mcp.yml b/.github/workflows/mcp.yml
index 2c1ec017..94b8e14f 100644
--- a/.github/workflows/mcp.yml
+++ b/.github/workflows/mcp.yml
@@ -13,12 +13,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
+ - uses: actions/[email protected]
with:
persist-credentials: false
- name: Setup
- uses: ./tooling/github/setup
+ uses: $/tooling/github/setup
- name: Build MCP
run: pnpm build
diff --git a/.github/workflows/pullfrog.yml b/.github/workflows/pullfrog.yml
index 8b3491bd..16d48617 100644
--- a/.github/workflows/pullfrog.yml
+++ b/.github/workflows/pullfrog.yml
@@ -22,11 +22,11 @@ jobs:
contents: read
steps:
- name: Checkout code
- uses: actions/checkout@v6
+ uses: actions/[email protected]
with:
fetch-depth: 1
- name: Run agent
- uses: pullfrog/pullfrog@v0
+ uses: pullfrog/[email protected]
with:
prompt: ${{ inputs.prompt }}
env:
diff --git a/.github/workflows/sdk.yml b/.github/workflows/sdk.yml
index 4b41d75b..abc5e2a8 100644
--- a/.github/workflows/sdk.yml
+++ b/.github/workflows/sdk.yml
@@ -13,12 +13,12 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
+ - uses: actions/[email protected]
with:
persist-credentials: false
- name: Setup
- uses: ./tooling/github/setup
+ uses: $/tooling/github/setup
- name: Build SDK
run: pnpm build
diff --git a/tooling/github/setup/action.yml b/tooling/github/setup/action.yml
index f1d91e33..573ba4a2 100644
--- a/tooling/github/setup/action.yml
+++ b/tooling/github/setup/action.yml
@@ -4,8 +4,8 @@ description: "Common setup steps for Actions"
runs:
using: composite
steps:
- - uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6
- - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
+ - uses: pnpm/[email protected]
+ - uses: actions/[email protected]
with:
node-version: 24
cache: "pnpm"