diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 949e4aad..8544f55e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,29 +1,21 @@ # This file is managed by the repo-content-updater project. Manual changes here will result in a PR to bring back -# inline with the upstream template, unless you remove the dependabot managed file property from the repo +# inline with the upstream template, unless you add !dependabot to the repo's managed-files property version: 2 +registries: + chia-pypi: + type: python-index + url: https://pypi.chia.net/simple/ + chia-downloads: + type: python-index + url: https://download.chia.net/simple/ updates: - - package-ecosystem: "gomod" - directory: / - schedule: - interval: "weekly" - day: "tuesday" - cooldown: - default-days: 7 - open-pull-requests-limit: 10 - rebase-strategy: auto - labels: - - dependencies - - go - - "Changed" - reviewers: ["cameroncooper", "emlowe"] - groups: - global: - patterns: - - "*" - - package-ecosystem: "pip" - directory: / + registries: + - chia-pypi + - chia-downloads + insecure-external-code-execution: allow + directories: ["/"] schedule: interval: "weekly" day: "tuesday" @@ -35,10 +27,8 @@ updates: - dependencies - python - "Changed" - reviewers: ["emlowe"] - - package-ecosystem: "github-actions" - directories: ["/", ".github/actions/*"] + directories: ["/", "/.github/actions/*"] schedule: interval: "weekly" day: "tuesday" @@ -50,43 +40,6 @@ updates: - dependencies - github_actions - "Changed" - reviewers: ["cmmarslender", "altendky"] - - - package-ecosystem: "npm" - directory: / - schedule: - interval: "weekly" - day: "tuesday" - cooldown: - default-days: 7 - open-pull-requests-limit: 10 - rebase-strategy: auto - labels: - - dependencies - - javascript - - "Changed" - reviewers: ["emlowe", "seeden"] - - - package-ecosystem: cargo - directory: / - schedule: - interval: "weekly" - day: "tuesday" - cooldown: - default-days: 7 - open-pull-requests-limit: 10 - rebase-strategy: auto - labels: - - dependencies - - rust - - "Changed" - - - package-ecosystem: swift - directory: / - schedule: - interval: "weekly" - day: "tuesday" - cooldown: - default-days: 7 - open-pull-requests-limit: 10 - rebase-strategy: auto + exclude-paths: + - ".github/workflows/dependency-artifact-review.yml" + - ".github/workflows/dependency-review.yml" diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 34d46b80..323de75f 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -1,10 +1,12 @@ -# Managed by repo-content-updater +# This file is managed by the repo-content-updater project. Manual changes here will result in a PR to bring back +# inline with the upstream template, unless you add !dep-review to the repo's managed-files property # Dependency Review Action # # This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging. # # Source repository: https://github.com/actions/dependency-review-action # Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement +# repo-content-updater:dependency-review name: "🚨 Dependency Review" on: [pull_request] @@ -22,5 +24,24 @@ jobs: - name: "Dependency Review" uses: actions/dependency-review-action@v5.0.0 with: + fail-on-severity: high allow-dependencies-licenses: pkg:pypi/pyinstaller - deny-licenses: AGPL-1.0-only, AGPL-1.0-or-later, AGPL-1.0-or-later, AGPL-3.0-or-later, GPL-1.0-only, GPL-1.0-or-later, GPL-2.0-only, GPL-2.0-or-later, GPL-3.0-only, GPL-3.0-or-later + deny-licenses: AGPL-1.0-only, AGPL-1.0-or-later, AGPL-3.0-only, AGPL-3.0-or-later, GPL-1.0-only, GPL-1.0-or-later, GPL-2.0-only, GPL-2.0-or-later, GPL-3.0-only, GPL-3.0-or-later + + osv-scanner: + if: github.repository_owner == 'Chia-Network' + permissions: + actions: read + contents: read + security-events: write + uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@v2.7.0 + with: + # Recursively scan every lockfile in the PR, including transitive dependencies. + scan-args: |- + --allow-no-lockfiles + -r + ./ + # The reusable workflow declares actions: read, contents: read and + # security-events: write. Findings fail the job through annotations; + # SARIF upload stays disabled. + upload-sarif: false