MaineK00n / vuls-data-update

Apache License 2.0
1 stars 2 forks source link

feat(ci): add repository size check #231

Closed shino closed 2 months ago

shino commented 2 months ago

disclaimer: fomart changes (indent spaces and single quotations replaced by double) are included. If these should be in separate PR, please let me know. I will do it. c.f. diff link without whitespace changes https://github.com/MaineK00n/vuls-data-update/pull/231/files?w=1

shino commented 2 months ago

@MaineK00n updated!

sample output is: https://github.com/MaineK00n/vuls-data-update/actions/runs/10570693915

MaineK00n commented 2 months ago
:000000 100644 00000000 00000000 A  .github/workflows/archive-extracted.yml
:000000 100644 00000000 00000000 A  .github/workflows/archive-raw.yml
:000000 100644 00000000 00000000 A  .github/workflows/archive.yml
:100644 100644 4d19bd06 00000000 M  .github/workflows/extract.yml
:100644 100644 c3c25a8d 00000000 M  .github/workflows/fetch.yml

diff --git a/.github/workflows/archive-extracted.yml b/.github/workflows/archive-extracted.yml
new file mode 100644
index 00000000..f2169d2e
--- /dev/null
+++ b/.github/workflows/archive-extracted.yml
@@ -0,0 +1,113 @@
+name: Archive-Extracted
+on:
+  workflow_run:
+    workflows: [Extract]
+    types:
+      - completed
+  workflow_dispatch:
+
+jobs:
+  archive-extracted:
+    strategy:
+      fail-fast: false
+      matrix:
+        target:
+          - "alma-errata"
+          - "alma-osv"
+          # - "alma-oval"
+          - "alpine-secdb"
+          - "alpine-osv"
+          - "amazon"
+          - "arch"
+          # - "debian-osv"
+          # - "debian-oval"
+          # - "debian-security-tracker-api"
+          # - "debian-security-tracker-salsa"
+          # - "fedora"
+          # - "fortinet"
+          # - "fortinet-cvrf"
+          - "freebsd"
+          # - "gentoo"
+          # - "netbsd"
+          - "oracle"
+          # - "redhat-cve"
+          # - "redhat-csaf"
+          # - "redhat-cvrf"
+          # - "redhat-oval-repository-to-cpe"
+          # - "redhat-ovalv1"
+          # - "redhat-ovalv2"
+          # - "redhat-vex"
+          # - "rocky-errata"
+          # - "rocky-osv"
+          # - "suse-oval"
+          # - "suse-cvrf"
+          # - "suse-cvrf-cve"
+          # - "suse-csaf"
+          # - "suse-csaf-vex"
+          # - "ubuntu-oval"
+          # - "ubuntu-cve-tracker"
+          # - "windows-bulletin"
+          # - "windows-cvrf"
+          # - "windows-msuc"
+          # - "windows-wsusscn2"
+
+          # - "cargo-ghsa"
+          # - "cargo-osv"
+          # - "composer-ghsa"
+          # - "composer-glsa"
+          # - "composer-osv"
+          # - "conan-glsa"
+          # - "erlang-ghsa"
+          # - "erlang-osv"
+          # - "golang-ghsa"
+          # - "golang-glsa"
+          # - "golang-osv"
+          # - "haskell-osv"
+          # - "maven-ghsa"
+          # - "maven-glsa"
+          # - "maven-osv"
+          # - "npm-ghsa"
+          # - "npm-glsa"
+          # - "npm-osv"
+          # - "nuget-ghsa"
+          # - "nuget-glsa"
+          # - "nuget-osv"
+          # - "pip-ghsa"
+          # - "pip-glsa"
+          # - "pip-osv"
+          # - "pub-ghsa"
+          # - "pub-osv"
+          # - "r-osv"
+          # - "rubygems-ghsa"
+          # - "rubygems-glsa"
+          # - "rubygems-osv"
+          # - "swift-ghsa"
+          # - "swift-osv"
+
+          # - "attack"
+          # - "capec"
+          # - "cwe"
+          - "epss"
+          # - "exploit-exploitdb"
+          # - "exploit-github"
+          # - "exploit-inthewild"
+          # - "exploit-trickest"
+          # - "jvn-feed-detail"
+          # - "jvn-feed-product"
+          # - "jvn-feed-rss"
+          - "kev"
+          # - "mitre-cvrf"
+          # - "mitre-v4"
+          - "mitre-v5"
+          # - "msf"
+          # - "nvd-api-cve"
+          # - "nvd-api-cpe"
+          # - "nvd-feed-cve"
+          # - "nvd-feed-cpe"
+          # - "snort"
+          # - "vulncheck-kev"
+          - "eol"
+    uses: ./.github/workflows/archive.yml
+    with:
+      type: extracted
+      target: ${{ matrix.target }}
diff --git a/.github/workflows/archive-raw.yml b/.github/workflows/archive-raw.yml
new file mode 100644
index 00000000..c03ae369
--- /dev/null
+++ b/.github/workflows/archive-raw.yml
@@ -0,0 +1,114 @@
+name: Archive-Raw
+on:
+  workflow_run:
+    workflows: [Fetch]
+    types:
+      - completed
+  workflow_dispatch:
+
+jobs:
+  archive-raw:
+    strategy:
+      fail-fast: false
+      matrix:
+        target:
+          - "alma-errata"
+          - "alma-osv"
+          - "alma-oval"
+          - "alpine-secdb"
+          - "alpine-osv"
+          - "amazon"
+          - "arch"
+          - "debian-osv"
+          - "debian-oval"
+          - "debian-security-tracker-api"
+          - "debian-security-tracker-salsa"
+          - "fedora"
+          - "fortinet"
+          - "fortinet-cvrf"
+          - "freebsd"
+          - "gentoo"
+          - "netbsd"
+          - "oracle"
+          - "redhat-cve"
+          - "redhat-csaf"
+          # - "redhat-cvrf"
+          - "redhat-oval-repository-to-cpe"
+          # - "redhat-ovalv1"
+          - "redhat-ovalv2"
+          - "redhat-vex"
+          - "rocky-errata"
+          - "rocky-osv"
+          - "suse-oval"
+          - "suse-cvrf"
+          - "suse-cvrf-cve"
+          - "suse-csaf"
+          - "suse-csaf-vex"
+          - "ubuntu-oval"
+          - "ubuntu-cve-tracker"
+          # - "windows-bulletin"
+          - "windows-cvrf"
+          - "windows-msuc"
+          - "windows-wsusscn2"
+
+          - "cargo-ghsa"
+          - "cargo-osv"
+          - "composer-ghsa"
+          - "composer-glsa"
+          - "composer-osv"
+          - "conan-glsa"
+          - "erlang-ghsa"
+          - "erlang-osv"
+          - "golang-ghsa"
+          - "golang-glsa"
+          - "golang-osv"
+          - "haskell-osv"
+          - "maven-ghsa"
+          - "maven-glsa"
+          - "maven-osv"
+          - "npm-ghsa"
+          - "npm-glsa"
+          - "npm-osv"
+          - "nuget-ghsa"
+          - "nuget-glsa"
+          - "nuget-osv"
+          - "pip-ghsa"
+          - "pip-glsa"
+          - "pip-osv"
+          - "pub-ghsa"
+          - "pub-osv"
+          - "r-osv"
+          - "rubygems-ghsa"
+          - "rubygems-glsa"
+          - "rubygems-osv"
+          - "swift-ghsa"
+          - "swift-osv"
+
+          - "attack"
+          - "capec"
+          - "cwe"
+          - "epss"
+          - "exploit-exploitdb"
+          - "exploit-github"
+          - "exploit-inthewild"
+          - "exploit-trickest"
+          - "jvn-feed-detail"
+          - "jvn-feed-product"
+          - "jvn-feed-rss"
+          - "kev"
+          # - "mitre-cvrf"
+          # - "mitre-v4"
+          - "mitre-v5"
+          - "msf"
+          - "nvd-api-cve"
+          - "nvd-api-cpe"
+          - "nvd-api-cpematch"
+          - "nvd-feed-cve"
+          - "nvd-feed-cpe"
+          - "nvd-feed-cpematch"
+          - "snort"
+          - "vulncheck-kev"
+    uses: ./.github/workflows/archive.yml
+    with:
+      type: raw
+      target: ${{ matrix.target }}
diff --git a/.github/workflows/archive.yml b/.github/workflows/archive.yml
new file mode 100644
index 00000000..b91e3ca3
--- /dev/null
+++ b/.github/workflows/archive.yml
@@ -0,0 +1,53 @@
+name: Archive
+
+on:
+  workflow_call:
+    inputs:
+      type:
+        description: "expected: [raw, extracted]"
+        required: true
+        type: string
+      target:
+        description: "target name"
+        required: true
+        type: string
+
+jobs:
+  archive:
+    name: archive vuls-data-${{ inputs.type }}-${{ inputs.target }}
+    runs-on: ubuntu-latest
+    steps:
+      - name: Check GitHub Repository Size
+        run: |
+          SIZE=$(curl -s https://api.github.com/repos/vulsio/vuls-data-${{ inputs.type }}-${{ inputs.target }} | jq '.size')
+          echo "repository size [KB]:" ${SIZE}
+          if [ ${SIZE} -gt 9500000 ]; then
+            echo "### Repository size is *over 9.5 GB*. Archive it!"
+
+            (
+              echo "### Repository size is *over 9.5 GB*. Archive it!"
+              echo ""
+              echo "### 1. Fork & archive the repository:"
+              echo ""
+              echo "\`\`\`"
+              echo "gh repo fork vulsio/vuls-data-${{ inputs.type }}-${{ inputs.target }} --clone=false --org=vulsio --fork-name=vuls-data-${{ inputs.type }}-${{ inputs.target }}-archive-<ARCHIVE-NUMBER>"
+              echo "gh repo archive vulsio/vuls-data-${{ inputs.type }}-${{ inputs.target }}-archive-<ARCHIVE-NUMBER> --yes"
+              echo "\`\`\`"
+              echo "" 
+              echo "### 2. Delete all commits and add one with the latest contents:"
+              echo ""
+              echo "\`\`\`"
+              echo "git clone git@github.com:vulsio/vuls-data-${{ inputs.type }}-${{ inputs.target }}.git"
+              echo "cd vuls-data-${{ inputs.type }}-${{ inputs.target }}"
+              echo "git checkout --orphan latest-only"
+              echo "git add -A"
+              echo "git commit -m 'just archived' > /dev/null"
+              echo "git branch -D main"
+              echo "git branch -m main"
+              echo "git push --force origin main"
+              echo "\`\`\`"
+              echo ""
+            ) >> $GITHUB_STEP_SUMMARY
+
+            exit 1
+          fi
diff --git a/.github/workflows/extract.yml b/.github/workflows/extract.yml
index 4d19bd06..14530c7b 100644
--- a/.github/workflows/extract.yml
+++ b/.github/workflows/extract.yml
@@ -1,7 +1,7 @@
 name: Extract
 on:
   workflow_run:
-    workflows: [Fetch]
+    workflows: [Archive-Raw]
     types:
       - completed
   workflow_dispatch:
@@ -106,6 +106,7 @@ jobs:
           # - "nvd-feed-cpe"
           # - "nvd-feed-cpematch"
           # - "snort"
+          # - "vulncheck-kev"
     steps:
       - name: Maximize build space
         uses: easimon/maximize-build-space@v10
@@ -169,41 +170,6 @@ jobs:
             git push
           fi

-      - name: Check github repository size
-        run: |
-          SIZE=$(curl -s https://api.github.com/repos/vulsio/vuls-data-extracted-${{ matrix.target }} | jq '.size')
-          echo "repository size [KB]:" ${SIZE}
-          if [ ${SIZE} -gt 9500000 ]; then
-            echo "### Repository size is *over 9.5 GB*. Archive it!"
-
-            (
-              echo "### Repository size is *over 9.5 GB*. Archive it!"
-              echo ""
-              echo "### 1. Fork & archive the repository:"
-              echo ""
-              echo "\`\`\`"
-              echo "gh repo fork vulsio/vuls-data-extracted-${{ matrix.target }} --clone=false --org=vulsio --fork-name=vuls-data-extracted-${{ matrix.target }}-archive-<ARCHIVE-NUMBER>"
-              echo "gh repo archive vulsio/vuls-data-extracted-${{ matrix.target }}-archive-<ARCHIVE-NUMBER> --yes"
-              echo "\`\`\`"
-              echo "" 
-              echo "### 2. Delete all commits and add one with the latest contents:"
-              echo ""
-              echo "\`\`\`"
-              echo "git clone git@github.com:vulsio/vuls-data-extracted-${{ matrix.target }}.git"
-              echo "cd vuls-data-extracted-${{ matrix.target }}"
-              echo "git checkout --orphan latest-only"
-              echo "git add -A"
-              echo "git commit -m 'just archived' > /dev/null"
-              echo "git branch -D main"
-              echo "git branch -m main"
-              echo "git push --force origin main"
-              echo "\`\`\`"
-              echo ""
-            ) >> $GITHUB_STEP_SUMMARY
-
-            exit 1
-          fi
-
   extract-nvd-api-cve:
     name: extract vuls-data-extracted-nvd-api-cve
     runs-on: ubuntu-latest
@@ -276,41 +242,6 @@ jobs:
             git push
           fi

-      - name: Check github repository size
-        run: |
-          SIZE=$(curl -s https://api.github.com/repos/vulsio/vuls-data-extracted-nvd-api-cve | jq '.size')
-          echo "repository size [KB]:" ${SIZE}
-          if [ ${SIZE} -gt 9500000 ]; then
-            echo "### Repository size is *over 9.5 GB*. Archive it!"
-
-            (
-              echo "### Repository size is *over 9.5 GB*. Archive it!"
-              echo ""
-              echo "### 1. Fork & archive the repository:"
-              echo ""
-              echo "\`\`\`"
-              echo "gh repo fork vulsio/vuls-data-extracted-nvd-api-cve --clone=false --org=vulsio --fork-name=vuls-data-extracted-nvd-api-cve-archive-<ARCHIVE-NUMBER>"
-              echo "gh repo archive vulsio/vuls-data-extracted-nvd-api-cve-archive-<ARCHIVE-NUMBER> --yes"
-              echo "\`\`\`"
-              echo "" 
-              echo "### 2. Delete all commits and add one with the latest contents:"
-              echo ""
-              echo "\`\`\`"
-              echo "git clone git@github.com:vulsio/vuls-data-extracted-nvd-api-cve.git"
-              echo "cd vuls-data-extracted-nvd-api-cve"
-              echo "git checkout --orphan latest-only"
-              echo "git add -A"
-              echo "git commit -m 'just archived' > /dev/null"
-              echo "git branch -D main"
-              echo "git branch -m main"
-              echo "git push --force origin main"
-              echo "\`\`\`"
-              echo ""
-            ) >> $GITHUB_STEP_SUMMARY
-
-            exit 1
-          fi
-
   extract-eol:
     name: extract vuls-data-extracted-eol
     runs-on: ubuntu-latest
@@ -370,38 +301,3 @@ jobs:
             git commit -m "update"
             git push
           fi
-
-      - name: Check github repository size
-        run: |
-          SIZE=$(curl -s https://api.github.com/repos/vulsio/vuls-data-extracted-eol | jq '.size')
-          echo "repository size [KB]:" ${SIZE}
-          if [ ${SIZE} -gt 9500000 ]; then
-            echo "### Repository size is *over 9.5 GB*. Archive it!"
-
-            (
-              echo "### Repository size is *over 9.5 GB*. Archive it!"
-              echo ""
-              echo "### 1. Fork & archive the repository:"
-              echo ""
-              echo "\`\`\`"
-              echo "gh repo fork vulsio/vuls-data-extracted-eol --clone=false --org=vulsio --fork-name=vuls-data-extracted-eol-archive-<ARCHIVE-NUMBER>"
-              echo "gh repo archive vulsio/vuls-data-extracted-eol-archive-<ARCHIVE-NUMBER> --yes"
-              echo "\`\`\`"
-              echo "" 
-              echo "### 2. Delete all commits and add one with the latest contents:"
-              echo ""
-              echo "\`\`\`"
-              echo "git clone git@github.com:vulsio/vuls-data-extracted-eol.git"
-              echo "cd vuls-data-extracted-eol"
-              echo "git checkout --orphan latest-only"
-              echo "git add -A"
-              echo "git commit -m 'just archived' > /dev/null"
-              echo "git branch -D main"
-              echo "git branch -m main"
-              echo "git push --force origin main"
-              echo "\`\`\`"
-              echo ""
-            ) >> $GITHUB_STEP_SUMMARY
-
-            exit 1
-          fi
diff --git a/.github/workflows/fetch.yml b/.github/workflows/fetch.yml
index c3c25a8d..a53ad1a5 100644
--- a/.github/workflows/fetch.yml
+++ b/.github/workflows/fetch.yml
@@ -92,9 +92,9 @@ jobs:
           - "jvn-feed-product"
           - "jvn-feed-rss"
           - "kev"
-          - "mitre-cvrf"
+          # - "mitre-cvrf"
           # - "mitre-v4"
-          # - "mitre-v5"
+          - "mitre-v5"
           - "msf"
           - "nvd-feed-cve"
           - "nvd-feed-cpe"
@@ -161,41 +161,6 @@ jobs:
             git push
           fi

-      - name: Check github repository size
-        run: |
-          SIZE=$(curl -s https://api.github.com/repos/vulsio/vuls-data-raw-${{ matrix.target }} | jq '.size')
-          echo "repository size [KB]:" ${SIZE}
-          if [ ${SIZE} -gt 9500000 ]; then
-            echo "### Repository size is *over 9.5 GB*. Archive it!"
-
-            (
-              echo "### Repository size is *over 9.5 GB*. Archive it!"
-              echo ""
-              echo "### 1. Fork & archive the repository:"
-              echo ""
-              echo "\`\`\`"
-              echo "gh repo fork vulsio/vuls-data-raw-${{ matrix.target }} --clone=false --org=vulsio --fork-name=vuls-data-raw-${{ matrix.target }}-archive-<ARCHIVE-NUMBER>"
-              echo "gh repo archive vulsio/vuls-data-raw-${{ matrix.target }}-archive-<ARCHIVE-NUMBER> --yes"
-              echo "\`\`\`"
-              echo "" 
-              echo "### 2. Delete all commits and add one with the latest contents:"
-              echo ""
-              echo "\`\`\`"
-              echo "git clone git@github.com:vulsio/vuls-data-raw-${{ matrix.target }}.git"
-              echo "cd vuls-data-raw-${{ matrix.target }}"
-              echo "git checkout --orphan latest-only"
-              echo "git add -A"
-              echo "git commit -m 'just archived' > /dev/null"
-              echo "git branch -D main"
-              echo "git branch -m main"
-              echo "git push --force origin main"
-              echo "\`\`\`"
-              echo ""
-            ) >> $GITHUB_STEP_SUMMARY
-
-            exit 1
-          fi
-
   fetch-nvd-api:
     name: fetch vuls-data-raw-${{ matrix.target }}
     runs-on: ubuntu-latest
@@ -274,41 +239,6 @@ jobs:
             git push
           fi

-      - name: Check github repository size
-        run: |
-          SIZE=$(curl -s https://api.github.com/repos/vulsio/vuls-data-raw-${{ matrix.target }} | jq '.size')
-          echo "repository size [KB]:" ${SIZE}
-          if [ ${SIZE} -gt 9500000 ]; then
-            echo "### Repository size is *over 9.5 GB*. Archive it!"
-
-            (
-              echo "### Repository size is *over 9.5 GB*. Archive it!"
-              echo ""
-              echo "### 1. Fork & archive the repository:"
-              echo ""
-              echo "\`\`\`"
-              echo "gh repo fork vulsio/vuls-data-raw-${{ matrix.target }} --clone=false --org=vulsio --fork-name=vuls-data-raw-${{ matrix.target }}-archive-<ARCHIVE-NUMBER>"
-              echo "gh repo archive vulsio/vuls-data-raw-${{ matrix.target }}-archive-<ARCHIVE-NUMBER> --yes"
-              echo "\`\`\`"
-              echo "" 
-              echo "### 2. Delete all commits and add one with the latest contents:"
-              echo ""
-              echo "\`\`\`"
-              echo "git clone git@github.com:vulsio/vuls-data-raw-${{ matrix.target }}.git"
-              echo "cd vuls-data-raw-${{ matrix.target }}"
-              echo "git checkout --orphan latest-only"
-              echo "git add -A"
-              echo "git commit -m 'just archived' > /dev/null"
-              echo "git branch -D main"
-              echo "git branch -m main"
-              echo "git push --force origin main"
-              echo "\`\`\`"
-              echo ""
-            ) >> $GITHUB_STEP_SUMMARY
-
-            exit 1
-          fi
-
   fetch-msuc:
     name: fetch vuls-data-raw-windows-msuc
     runs-on: ubuntu-latest
@@ -457,41 +387,6 @@ jobs:
             git push
           fi

-      - name: Check github repository size
-        run: |
-          SIZE=$(curl -s https://api.github.com/repos/vulsio/vuls-data-raw-windows-msuc | jq '.size')
-          echo "repository size [KB]:" ${SIZE}
-          if [ ${SIZE} -gt 9500000 ]; then
-            echo "### Repository size is *over 9.5 GB*. Archive it!"
-
-            (
-              echo "### Repository size is *over 9.5 GB*. Archive it!"
-              echo ""
-              echo "### 1. Fork & archive the repository:"
-              echo ""
-              echo "\`\`\`"
-              echo "gh repo fork vulsio/vuls-data-raw-windows-msuc --clone=false --org=vulsio --fork-name=vuls-data-raw-windows-msuc-archive-<ARCHIVE-NUMBER>"
-              echo "gh repo archive vulsio/vuls-data-raw-windows-msuc-archive-<ARCHIVE-NUMBER> --yes"
-              echo "\`\`\`"
-              echo "" 
-              echo "### 2. Delete all commits and add one with the latest contents:"
-              echo ""
-              echo "\`\`\`"
-              echo "git clone git@github.com:vulsio/vuls-data-raw-windows-msuc.git"
-              echo "cd vuls-data-raw-windows-msuc"
-              echo "git checkout --orphan latest-only"
-              echo "git add -A"
-              echo "git commit -m 'just archived' > /dev/null"
-              echo "git branch -D main"
-              echo "git branch -m main"
-              echo "git push --force origin main"
-              echo "\`\`\`"
-              echo ""
-            ) >> $GITHUB_STEP_SUMMARY
-
-            exit 1
-          fi
-
   fetch-fedora-release:
     name: fetch fedora release
     runs-on: ubuntu-latest
@@ -584,41 +479,6 @@ jobs:
             cd vuls-data-raw-fedora
             git push

-      - name: Check github repository size
-        run: |
-          SIZE=$(curl -s https://api.github.com/repos/vulsio/vuls-data-raw-fedora | jq '.size')
-          echo "repository size [KB]:" ${SIZE}
-          if [ ${SIZE} -gt 9500000 ]; then
-            echo "### Repository size is *over 9.5 GB*. Archive it!"
-
-            (
-              echo "### Repository size is *over 9.5 GB*. Archive it!"
-              echo ""
-              echo "### 1. Fork & archive the repository:"
-              echo ""
-              echo "\`\`\`"
-              echo "gh repo fork vulsio/vuls-data-raw-fedora --clone=false --org=vulsio --fork-name=vuls-data-raw-fedora-archive-<ARCHIVE-NUMBER>"
-              echo "gh repo archive vulsio/vuls-data-raw-fedora-archive-<ARCHIVE-NUMBER> --yes"
-              echo "\`\`\`"
-              echo "" 
-              echo "### 2. Delete all commits and add one with the latest contents:"
-              echo ""
-              echo "\`\`\`"
-              echo "git clone git@github.com:vulsio/vuls-data-raw-fedora.git"
-              echo "cd vuls-data-raw-fedora"
-              echo "git checkout --orphan latest-only"
-              echo "git add -A"
-              echo "git commit -m 'just archived' > /dev/null"
-              echo "git branch -D main"
-              echo "git branch -m main"
-              echo "git push --force origin main"
-              echo "\`\`\`"
-              echo ""
-            ) >> $GITHUB_STEP_SUMMARY
-
-            exit 1
-          fi
-
   fetch-epss:
     name: fetch vuls-data-raw-epss
     runs-on: ubuntu-latest
@@ -687,41 +547,6 @@ jobs:
             git push
           fi

-      - name: Check github repository size
-        run: |
-          SIZE=$(curl -s https://api.github.com/repos/vulsio/vuls-data-raw-epss | jq '.size')
-          echo "repository size [KB]:" ${SIZE}
-          if [ ${SIZE} -gt 9500000 ]; then
-            echo "### Repository size is *over 9.5 GB*. Archive it!"
-
-            (
-              echo "### Repository size is *over 9.5 GB*. Archive it!"
-              echo ""
-              echo "### 1. Fork & archive the repository:"
-              echo ""
-              echo "\`\`\`"
-              echo "gh repo fork vulsio/vuls-data-raw-epss --clone=false --org=vulsio --fork-name=vuls-data-raw-epss-archive-<ARCHIVE-NUMBER>"
-              echo "gh repo archive vulsio/vuls-data-raw-epss-archive-<ARCHIVE-NUMBER> --yes"
-              echo "\`\`\`"
-              echo "" 
-              echo "### 2. Delete all commits and add one with the latest contents:"
-              echo ""
-              echo "\`\`\`"
-              echo "git clone git@github.com:vulsio/vuls-data-raw-epss.git"
-              echo "cd vuls-data-raw-epss"
-              echo "git checkout --orphan latest-only"
-              echo "git add -A"
-              echo "git commit -m 'just archived' > /dev/null"
-              echo "git branch -D main"
-              echo "git branch -m main"
-              echo "git push --force origin main"
-              echo "\`\`\`"
-              echo ""
-            ) >> $GITHUB_STEP_SUMMARY
-
-            exit 1
-          fi
-
   fetch-fortinet:
     name: fetch vuls-data-raw-fortinet
     runs-on: ubuntu-latest
@@ -801,41 +626,6 @@ jobs:
             git push
           fi

-      - name: Check github repository size
-        run: |
-          SIZE=$(curl -s https://api.github.com/repos/vulsio/vuls-data-raw-fortinet-cvrf | jq '.size')
-          echo "repository size [KB]:" ${SIZE}
-          if [ ${SIZE} -gt 9500000 ]; then
-            echo "### Repository size is *over 9.5 GB*. Archive it!"
-
-            (
-              echo "### Repository size is *over 9.5 GB*. Archive it!"
-              echo ""
-              echo "### 1. Fork & archive the repository:"
-              echo ""
-              echo "\`\`\`"
-              echo "gh repo fork vulsio/vuls-data-raw-fortinet-cvrf --clone=false --org=vulsio --fork-name=vuls-data-raw-fortinet-cvrf-archive-<ARCHIVE-NUMBER>"
-              echo "gh repo archive vulsio/vuls-data-raw-fortinet-cvrf-archive-<ARCHIVE-NUMBER> --yes"
-              echo "\`\`\`"
-              echo "" 
-              echo "### 2. Delete all commits and add one with the latest contents:"
-              echo ""
-              echo "\`\`\`"
-              echo "git clone git@github.com:vulsio/vuls-data-raw-fortinet-cvrf.git"
-              echo "cd vuls-data-raw-fortinet-cvrf"
-              echo "git checkout --orphan latest-only"
-              echo "git add -A"
-              echo "git commit -m 'just archived' > /dev/null"
-              echo "git branch -D main"
-              echo "git branch -m main"
-              echo "git push --force origin main"
-              echo "\`\`\`"
-              echo ""
-            ) >> $GITHUB_STEP_SUMMARY
-
-            exit 1
-          fi
-
   fetch-vulncheck:
     name: fetch vuls-data-raw-${{ matrix.target }}
     runs-on: ubuntu-latest
@@ -900,38 +690,3 @@ jobs:
             git commit -m "update"
             git push
           fi
-
-      - name: Check github repository size
-        run: |
-          SIZE=$(curl -s https://api.github.com/repos/vulsio/vuls-data-raw-${{ matrix.target }} | jq '.size')
-          echo "repository size [KB]:" ${SIZE}
-          if [ ${SIZE} -gt 9500000 ]; then
-            echo "### Repository size is *over 9.5 GB*. Archive it!"
-
-            (
-              echo "### Repository size is *over 9.5 GB*. Archive it!"
-              echo ""
-              echo "### 1. Fork & archive the repository:"
-              echo ""
-              echo "\`\`\`"
-              echo "gh repo fork vulsio/vuls-data-raw-${{ matrix.target }} --clone=false --org=vulsio --fork-name=vuls-data-raw-${{ matrix.target }}-archive-<ARCHIVE-NUMBER>"
-              echo "gh repo archive vulsio/vuls-data-raw-${{ matrix.target }}-archive-<ARCHIVE-NUMBER> --yes"
-              echo "\`\`\`"
-              echo "" 
-              echo "### 2. Delete all commits and add one with the latest contents:"
-              echo ""
-              echo "\`\`\`"
-              echo "git clone git@github.com:vulsio/vuls-data-raw-${{ matrix.target }}.git"
-              echo "cd vuls-data-raw-${{ matrix.target }}"
-              echo "git checkout --orphan latest-only"
-              echo "git add -A"
-              echo "git commit -m 'just archived' > /dev/null"
-              echo "git branch -D main"
-              echo "git branch -m main"
-              echo "git push --force origin main"
-              echo "\`\`\`"
-              echo ""
-            ) >> $GITHUB_STEP_SUMMARY
-
-            exit 1
-          fi