From b32ebb64889943d5501e37dc5bcc0825f5c59463 Mon Sep 17 00:00:00 2001 From: Ayan Sinha Mahapatra Date: Tue, 30 Sep 2025 03:13:21 +0530 Subject: [PATCH] Add misc CI actions for pacakgeURL mining Signed-off-by: Ayan Sinha Mahapatra --- .github/workflows/mine-alpine-packageurls.yml | 16 ++++++++++++++++ .github/workflows/mine-debian-packageurls.yml | 16 ++++++++++++++++ .github/workflows/mine-maven-packageurls.yml | 16 ++++++++++++++++ .github/workflows/mine-swift-packageurls.yml | 16 ++++++++++++++++ 4 files changed, 64 insertions(+) create mode 100644 .github/workflows/mine-alpine-packageurls.yml create mode 100644 .github/workflows/mine-debian-packageurls.yml create mode 100644 .github/workflows/mine-maven-packageurls.yml create mode 100644 .github/workflows/mine-swift-packageurls.yml diff --git a/.github/workflows/mine-alpine-packageurls.yml b/.github/workflows/mine-alpine-packageurls.yml new file mode 100644 index 00000000..eb567e51 --- /dev/null +++ b/.github/workflows/mine-alpine-packageurls.yml @@ -0,0 +1,16 @@ +on: [workflow_dispatch] + +jobs: + mine-pypi-purls: + runs-on: ubuntu-24.04 + name: Mine pypi PackageURLs + steps: + - uses: aboutcode-org/scancode-action@beta + with: + scancodeio-repo-branch: "collect-purl-metadata#egg=scancodeio[mining]" + pipelines: "mine_alpine" + env: + FEDERATEDCODE_GIT_ACCOUNT_URL: https://github.com/aboutcode-data/minecode-data-pypi-test + FEDERATEDCODE_GIT_SERVICE_TOKEN: ${{ secrets.MINING_GITHUB_TOKEN }} + FEDERATEDCODE_GIT_SERVICE_NAME: "AboutCode Automation" + FEDERATEDCODE_GIT_SERVICE_EMAIL: "automation@aboutcode.org" diff --git a/.github/workflows/mine-debian-packageurls.yml b/.github/workflows/mine-debian-packageurls.yml new file mode 100644 index 00000000..606e49f6 --- /dev/null +++ b/.github/workflows/mine-debian-packageurls.yml @@ -0,0 +1,16 @@ +on: [workflow_dispatch] + +jobs: + mine-pypi-purls: + runs-on: ubuntu-24.04 + name: Mine pypi PackageURLs + steps: + - uses: aboutcode-org/scancode-action@beta + with: + scancodeio-repo-branch: "collect-purl-metadata#egg=scancodeio[mining]" + pipelines: "mine_debian" + env: + FEDERATEDCODE_GIT_ACCOUNT_URL: https://github.com/aboutcode-data/minecode-data-pypi-test + FEDERATEDCODE_GIT_SERVICE_TOKEN: ${{ secrets.MINING_GITHUB_TOKEN }} + FEDERATEDCODE_GIT_SERVICE_NAME: "AboutCode Automation" + FEDERATEDCODE_GIT_SERVICE_EMAIL: "automation@aboutcode.org" diff --git a/.github/workflows/mine-maven-packageurls.yml b/.github/workflows/mine-maven-packageurls.yml new file mode 100644 index 00000000..82985671 --- /dev/null +++ b/.github/workflows/mine-maven-packageurls.yml @@ -0,0 +1,16 @@ +on: [workflow_dispatch] + +jobs: + mine-pypi-purls: + runs-on: ubuntu-24.04 + name: Mine pypi PackageURLs + steps: + - uses: aboutcode-org/scancode-action@beta + with: + scancodeio-repo-branch: "collect-purl-metadata#egg=scancodeio[mining]" + pipelines: "mine_maven" + env: + FEDERATEDCODE_GIT_ACCOUNT_URL: https://github.com/aboutcode-data/minecode-data-pypi-test + FEDERATEDCODE_GIT_SERVICE_TOKEN: ${{ secrets.MINING_GITHUB_TOKEN }} + FEDERATEDCODE_GIT_SERVICE_NAME: "AboutCode Automation" + FEDERATEDCODE_GIT_SERVICE_EMAIL: "automation@aboutcode.org" diff --git a/.github/workflows/mine-swift-packageurls.yml b/.github/workflows/mine-swift-packageurls.yml new file mode 100644 index 00000000..4e5d8eab --- /dev/null +++ b/.github/workflows/mine-swift-packageurls.yml @@ -0,0 +1,16 @@ +on: [workflow_dispatch] + +jobs: + mine-pypi-purls: + runs-on: ubuntu-24.04 + name: Mine pypi PackageURLs + steps: + - uses: aboutcode-org/scancode-action@beta + with: + scancodeio-repo-branch: "collect-purl-metadata#egg=scancodeio[mining]" + pipelines: "mine_swift" + env: + FEDERATEDCODE_GIT_ACCOUNT_URL: https://github.com/aboutcode-data/minecode-data-pypi-test + FEDERATEDCODE_GIT_SERVICE_TOKEN: ${{ secrets.MINING_GITHUB_TOKEN }} + FEDERATEDCODE_GIT_SERVICE_NAME: "AboutCode Automation" + FEDERATEDCODE_GIT_SERVICE_EMAIL: "automation@aboutcode.org"