Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(ci,github): tighten workflow token scope and preserve zero task numbers

Tina56e8cdd66d1
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a4aab7c72..7f0de70ac 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -4,6 +4,9 @@ on:
push:
pull_request:
+permissions:
+ contents: read
+
jobs:
lint:
runs-on: ubuntu-24.04
diff --git a/apps/api/src/plugins/github/webhooks/pull-request-opened.ts b/apps/api/src/plugins/github/webhooks/pull-request-opened.ts
index 70fd53ad1..34d5313dd 100644
--- a/apps/api/src/plugins/github/webhooks/pull-request-opened.ts
+++ b/apps/api/src/plugins/github/webhooks/pull-request-opened.ts
@@ -55,7 +55,7 @@ export async function handlePullRequestOpened(payload: PROpenedPayload) {
projectSlug,
);
- if (!taskNumber) {
+ if (taskNumber === null) {
continue;
}