Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Skip CodeQL config"

queries:
- uses: security-extended

# The C runtime is a local CLI: the only cpp/path-injection hits are
# sk_create_mapping/sk_load_mapping opening the state.db path passed via the
# process's own --data/--init argv (skiplang/prelude/runtime/palloc.c). The
# local user already controls the filesystem, so the rule is pure noise here.
query-filters:
- exclude:
id: cpp/path-injection

# The examples are localhost-only demos, not shipped services, so
# js/missing-rate-limiting does not apply to them.
paths-ignore:
- "skipruntime-ts/examples/database-server.ts"
3 changes: 2 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ jobs:
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
queries: security-extended
# query suite and filters live in .github/codeql/codeql-config.yml
config-file: .github/codeql/codeql-config.yml

- name: Build C runtime (manual c-cpp)
if: matrix.language == 'c-cpp'
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/docker-publish-skdb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- uses: docker/setup-buildx-action@v4
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
with:
version: ${{ env.BUILDX_VERSION }}
- name: Check the credentials can push skdb
Expand Down Expand Up @@ -64,10 +64,10 @@ jobs:
# The compiler is built from source in the image, and its Makefile
# needs the pinned bootstrap and libbacktrace submodules.
submodules: true
- uses: docker/setup-buildx-action@v4
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
with:
version: ${{ env.BUILDX_VERSION }}
- uses: docker/login-action@v4
- uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -76,7 +76,7 @@ jobs:
run: df -h /
- name: Build and push by digest
id: bake
uses: docker/bake-action@v7
uses: docker/bake-action@59cb1203cd42bcefd40a1b6d73b589e48c86040e # v7.5.0
with:
# v6+ defaults to the git context, which would pick up neither the
# submodules checked out above nor .dockerignore.
Expand Down Expand Up @@ -129,13 +129,13 @@ jobs:
path: /tmp/digests
pattern: digest-*
merge-multiple: true
- uses: docker/setup-buildx-action@v4
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
with:
# Load bearing: imagetools create runs from the CLI plugin this
# installs, and it is what preserves or drops the per-platform
# attestations.
version: ${{ env.BUILDX_VERSION }}
- uses: docker/login-action@v4
- uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- uses: docker/setup-buildx-action@v4
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
with:
version: ${{ env.BUILDX_VERSION }}
- name: Check every image CircleCI pulls is published
Expand All @@ -52,7 +52,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
- uses: docker/setup-buildx-action@v4
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
with:
version: ${{ env.BUILDX_VERSION }}
- name: Check the credentials can push every published image
Expand Down Expand Up @@ -83,10 +83,10 @@ jobs:
# The compiler is built from source in the image, and its Makefile
# needs the pinned bootstrap and libbacktrace submodules.
submodules: true
- uses: docker/setup-buildx-action@v4
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
with:
version: ${{ env.BUILDX_VERSION }}
- uses: docker/login-action@v4
- uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
run: df -h /
- name: Build and push by digest
id: bake
uses: docker/bake-action@v7
uses: docker/bake-action@59cb1203cd42bcefd40a1b6d73b589e48c86040e # v7.5.0
with:
# v6+ defaults to the git context, which would pick up neither the
# submodules checked out above nor .dockerignore.
Expand Down Expand Up @@ -182,13 +182,13 @@ jobs:
path: /tmp/meta
pattern: metadata-*
merge-multiple: true
- uses: docker/setup-buildx-action@v4
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
with:
# Load bearing here, not just in build: imagetools create runs from
# the CLI plugin this installs, and it is what preserves or drops the
# per-platform attestations.
version: ${{ env.BUILDX_VERSION }}
- uses: docker/login-action@v4
- uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker-retag-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ jobs:
if: github.repository == 'SkipLabs/skip'
runs-on: ubuntu-24.04
steps:
- uses: docker/setup-buildx-action@v4
- uses: docker/setup-buildx-action@f87e5991a6d7451dcb8d9637bfbc97413f497069 # v4.4.1
with:
version: ${{ env.BUILDX_VERSION }}
- uses: docker/login-action@v4
- uses: docker/login-action@8aa5831fb8d48d8f76594c7ddde61ae58019f550 # v4.8.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
6 changes: 6 additions & 0 deletions sql/ts/src/skdb_worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ const post = (message: any) => {
};

const onMessage = (message: MessageEvent) => {
// The worker is only ever created same-origin from the embedding page
// (browser.ts: new Worker(new URL("./skdb_worker.js", import.meta.url))),
// so anything else is not a legitimate caller.
if (message.origin !== self.location.origin) {
return;
}
/* eslint-disable-next-line @typescript-eslint/no-unsafe-argument */
onWorkerMessage(message.data, post, creator);
};
Expand Down