Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

feat: Remodel so that scan objects can be used separately #443

Merged
1 commit merged into from
Jul 19, 2023

Conversation

ghost
Copy link

@ghost ghost commented Jul 4, 2023

Description

This commit remodels ScanConfigs, Scans and AssetScans so that Scans and AssetScans can be created independently from each other. This opens the door for a number of different use cases some examples are:

  • creating a single Scan without a ScanConfig if you just want to scan once now.
  • creating an AssetScan for a specific asset without a Scan to scan a specific asset now.
  • creating an AssetScan with results for a asset without going through the orchestrator at all, for example when reporting results from a scan in CI/CD

Type of Change

[ ] Bug Fix
[X] New Feature
[X] Breaking Change
[X] Refactor
[ ] Documentation
[ ] Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@ghost ghost self-requested a review as a code owner July 4, 2023 16:12
@ghost ghost force-pushed the remodel_scans_new branch 2 times, most recently from 6a8b9cb to aef8080 Compare July 5, 2023 07:38
Copy link
Member

@pbalogh-sa pbalogh-sa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ghost ghost force-pushed the remodel_scans_new branch 2 times, most recently from bbab456 to 5dc17dc Compare July 14, 2023 11:59
@ghost ghost force-pushed the remodel_scans_new branch from 5dc17dc to 6142770 Compare July 17, 2023 08:12
@ghost ghost requested review from fishkerez, akpsgit and pbalogh-sa July 17, 2023 08:13
pbalogh-sa
pbalogh-sa previously approved these changes Jul 18, 2023
This commit remodels ScanConfigs, Scans and AssetScans so that Scans and
AssetScans can be created independently from each other. This opens the
door for a number of different use cases some examples are:

- creating a single Scan without a ScanConfig if you just want to scan
  once now.
- creating an AssetScan for a specific asset without a Scan to scan a
  specific asset now.
- creating an AssetScan with results for a asset without going through
  the orchestrator at all, for example when reporting results from a
  scan in CI/CD
@ghost ghost enabled auto-merge July 19, 2023 09:03
@ghost ghost added this pull request to the merge queue Jul 19, 2023
Merged via the queue into main with commit 9e48ab5 Jul 19, 2023
@ghost ghost deleted the remodel_scans_new branch July 19, 2023 10:07
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants