ci: drop DEPENDENCY_REVIEW_ENABLED once the repository is public

Open
#99 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
54/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
github-actions, python, yaml
Domain
ci-cd, devops

Research direction

Read .github/workflows/sbom.yml and inspect the dependency-review job condition and its comment. The issue says to first confirm the dependency graph is enabled and turn on Dependabot alerts after the repository becomes public; then remove the switch, delete the repository variable if present, and optionally require the check. Done when the job runs on pull requests and the switch is gone.

Written by the indexing model from the issue text.

Description

ci enhancement

🤖 AI text below 🤖

What

Once this repository is public, remove the DEPENDENCY_REVIEW_ENABLED switch so the Dependency review job runs on every pull request that touches the dependencies.

Why

The dependency-review job in .github/workflows/sbom.yml (added in #97) runs actions/dependency-review-action. It fails a PR that adds or upgrades to a dependency version with a known vulnerability of severity high or above. On an internal repository the action needs GitHub Code Security (a paid add-on) and the dependency graph. Both are currently off, so the job only runs when the repository variable DEPENDENCY_REVIEW_ENABLED is true:

if: ${{ github.event_name == 'pull_request' && vars.DEPENDENCY_REVIEW_ENABLED == 'true' }}

On a public repository the action is free and Code Security is not required, so the switch has no purpose and only risks the check being silently skipped.

To do, after the repository goes public

  • Check that the dependency graph is on (Settings → Advanced Security), and turn on Dependabot alerts.
  • In .github/workflows/sbom.yml, reduce the job's condition to if: ${{ github.event_name == 'pull_request' }}, and drop the comment above the job that explains the switch.
  • Delete the repository variable if it was ever set: gh variable delete DEPENDENCY_REVIEW_ENABLED.
  • Optionally, make Dependency review a required check in the branch ruleset.
Dominant language
Python
Stars
0
Forks
0
Avg merge
19h 42m
Merged PRs (30d)
33

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Algorithmiq/AEGISS

All issues in Algorithmiq/AEGISS

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.