From cc4c3b4ac404d0f13aaada1e978dede41bcefb45 Mon Sep 17 00:00:00 2001 From: NxPKG <116948796+NxPKG@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:33:12 +0600 Subject: [PATCH 1/2] Update cron.yml Signed-off-by: NxPKG <116948796+NxPKG@users.noreply.github.com> --- .github/workflows/cron.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 0389488..78cd282 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -15,8 +15,14 @@ jobs: name: Build DB runs-on: ubuntu-24.04 steps: - - name: Check out code into the Go module directory - uses: actions/checkout@v2 + - name: Maximize build space + uses: easimon/maximize-build-space@v10 + with: + root-reserve-mb: 32768 # vuln-list dirs + language repositories use more than 12GB of storage + remove-android: "true" + remove-docker-images: "true" + remove-dotnet: "true" + remove-haskell: "true" - name: Set up Go uses: actions/setup-go@v3 From b5931ba16f6189bd268ff715fcddfc78ee0a012d Mon Sep 17 00:00:00 2001 From: NxPKG <116948796+NxPKG@users.noreply.github.com> Date: Sat, 1 Mar 2025 20:46:19 +0600 Subject: [PATCH 2/2] Update builder.go (#49) * Update builder.go Signed-off-by: NxPKG <116948796+NxPKG@users.noreply.github.com> * Update README.md Signed-off-by: NxPKG <116948796+NxPKG@users.noreply.github.com> --------- Signed-off-by: NxPKG <116948796+NxPKG@users.noreply.github.com> --- README.md | 4 ++-- pkg/builder/builder.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a3ac5eb..d1f522d 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ The DB is used in Tunnel to discover information about `jars` without GAV inside them. ## Update interval -Every Thursday in 00:00 +Every day at 00:00 ## Download the java indexes database You can download the actual compiled database via [Tunnel](https://khulnasoft.github.io/tunnel/) or [Oras CLI](https://oras.land/cli/). @@ -28,4 +28,4 @@ oras < v0.13.0: ```sh $ oras pull -a ghcr.io/khulnasoft-lab/tunnel-java-db:1 ``` -The database can be used for [Air-Gapped Environment](https://khulnasoft.github.io/tunnel/latest/docs/advanced/air-gap/). \ No newline at end of file +The database can be used for [Air-Gapped Environment](https://khulnasoft.github.io/tunnel/latest/docs/advanced/air-gap/). diff --git a/pkg/builder/builder.go b/pkg/builder/builder.go index 309ee25..1eb3eb2 100644 --- a/pkg/builder/builder.go +++ b/pkg/builder/builder.go @@ -17,7 +17,7 @@ import ( "github.com/khulnasoft-lab/tunnel-java-db/pkg/types" ) -const updateInterval = time.Hour * 72 // 3 days +const updateInterval = time.Hour * 24 * 3 // 3 days type Builder struct { db db.DB