Skip to content

Conversation

@AlexanderBarabanov
Copy link
Contributor

What does this PR do?

This PR add security pipeline and fix some existing findings, in particular:

  • dependabot.yml enables Dependabot PR with upgrades
  • codeql.yml - enables CodeQL - static code analyzer
  • pre_commit.yml added security pre-merge checks based on reusable actions from Anomalib repo
  • scorecards.yml enables OSSF Scorecard
  • security-scan.yml - added security checks based on reusable actions from Anomalib
  • .pre-commit-config.yaml - added zizmor and bandit pre-commit checks
  • pyproject.toml updated with Bandit config
  • current workflows updated based on Zizmor findings
  • README updated with prettier-ignore to pass quality checks (it started to fail, although there was not changes in PR - see https://github.com/open-edge-platform/model_api/actions/runs/15850740153/job/44683303711)

Tested on local fork.

Fixes # (issue)

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

Signed-off-by: Barabanov <[email protected]>
Signed-off-by: Barabanov <[email protected]>
Signed-off-by: Barabanov <[email protected]>
Signed-off-by: Barabanov <[email protected]>
Signed-off-by: Barabanov <[email protected]>
Signed-off-by: Barabanov <[email protected]>
Signed-off-by: Barabanov <[email protected]>
Signed-off-by: Barabanov <[email protected]>
Signed-off-by: Barabanov <[email protected]>
Signed-off-by: Barabanov <[email protected]>
Signed-off-by: Barabanov <[email protected]>
Signed-off-by: Barabanov <[email protected]>
Signed-off-by: Barabanov <[email protected]>
@AlexanderBarabanov AlexanderBarabanov requested a review from a team as a code owner June 24, 2025 15:40
@github-actions github-actions bot added python python related changes docs Related to documentation build Related to build scripts samples labels Jun 24, 2025
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@sovrasov sovrasov added this pull request to the merge queue Jun 25, 2025
Merged via the queue into open-edge-platform:master with commit 372143f Jun 25, 2025
19 checks passed
sovrasov added a commit that referenced this pull request Jun 26, 2025
* addressing zizmor findings



* added scorecards.yml



* zizmor on pre-commit



* added bandit config



* bandit fp



* added security scan on pre-merge



* fix bandit config



* dependabot config



* enable CodeQL



* version upgrade



* CodeQL CPP



* style fix



* style fix



* style fix



* prettier-ignore



---------

Signed-off-by: Barabanov <[email protected]>
Co-authored-by: Alexander Barabanov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Related to build scripts docs Related to documentation python python related changes samples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants