Skip to content

Commit 319cdfb

Browse files
committed
ci: remove dependency review job to enhance compatibility with private repositories
1 parent a7cca78 commit 319cdfb

1 file changed

Lines changed: 6 additions & 20 deletions

File tree

.github/workflows/security-scans.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,12 @@ permissions:
1212
contents: read
1313

1414
jobs:
15-
dependency-review:
16-
name: Dependency Review
17-
# Fix: Removed `github.event.repository.private == false` — that condition
18-
# permanently skips this job on private repos.
19-
#
20-
# Dependency Review requires the Dependency Graph to be enabled in your
21-
# repository settings (Settings → Code security → Dependency graph).
22-
# It does NOT require GitHub Advanced Security on private repos —
23-
# the Dependency Graph feature is available on all GitHub plans.
24-
# Enable it at: https://github.com/Som3a99/company-management-system/settings/security_analysis
25-
if: github.event_name == 'pull_request'
26-
runs-on: ubuntu-latest
27-
timeout-minutes: 10
28-
steps:
29-
- name: Checkout
30-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
31-
- name: Dependency Review
32-
uses: actions/dependency-review-action@2031cfc080254a8a887f58cffee85186f0e49e48 # v4.9.0
33-
with:
34-
fail-on-severity: moderate
15+
# NOTE: actions/dependency-review-action has been intentionally removed.
16+
# It hard-requires GitHub Advanced Security (GHAS) on private repositories —
17+
# the Dependency Graph being enabled is necessary but not sufficient.
18+
# GHAS is only available on GitHub Enterprise plans.
19+
# Equivalent coverage is provided by dotnet-vulnerability-scan below,
20+
# which uses `dotnet list --vulnerable` and needs no special GitHub features.
3521

3622
dotnet-vulnerability-scan:
3723
name: .NET Vulnerability Audit

0 commit comments

Comments
 (0)