-
Notifications
You must be signed in to change notification settings - Fork 6.5k
migrate code from googleapis/python-containeranalysis #8529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 100 commits
Commits
Show all changes
107 commits
Select commit
Hold shift + click to select a range
ebf183c
Container Analysis samples [(#2258)](https://github.com/GoogleCloudPl…
daniel-sanche 93dd480
Update samples.py [(#2263)](https://github.com/GoogleCloudPlatform/py…
daniel-sanche 96f6ab1
Adds updates including compute [(#2436)](https://github.com/GoogleClo…
gguuss ba69dc1
fix: Use different versions of pytest for python 2 and python3 [(#255…
crwilcox ea362f3
Simplify noxfile setup. [(#2806)](https://github.com/GoogleCloudPlatf…
kurtisvg f815dfc
Update dependency mock to v4 [(#3216)](https://github.com/GoogleCloud…
renovate-bot 1bc92fe
[container_registry] fix: fix broken test [(#3436)](https://github.co…
7539962
Update dependency google-cloud-containeranalysis to v0.3.1 [(#3055)](…
renovate-bot 3e6ab21
Update dependency google-cloud-pubsub to v1.4.2 [(#3340)](https://git…
busunkim96 a98ded1
[container analysis] effective severity [(#3478)](https://github.com/…
daniel-sanche 84e07a8
[container_registry] fix: bump the pubsub timeout [(#3698)](https://g…
133a429
chore(deps): update dependency google-cloud-pubsub to v1.4.3 [(#3725)…
renovate-bot 057ceec
[container-registry] fix: mark a flaky test [(#3765)](https://github.…
77265d6
chore(deps): update dependency grafeas to v0.4.0 [(#3172)](https://gi…
renovate-bot f12ab0d
chore(deps): update dependency google-cloud-pubsub to v1.5.0 [(#3781)…
renovate-bot 9427335
Replace GCLOUD_PROJECT with GOOGLE_CLOUD_PROJECT. [(#4022)](https://g…
kurtisvg 163c55c
Update dependency google-cloud-pubsub to v1.6.0 [(#4039)](https://git…
renovate-bot bddc99d
chore(deps): update dependency grafeas to v0.4.1 [(#4200)](https://gi…
renovate-bot 4ce25b1
chore(deps): update dependency google-cloud-pubsub to v1.6.1 [(#4242)…
renovate-bot 06af00f
chore(deps): update dependency flaky to v3.7.0 [(#4263)](https://gith…
renovate-bot 7e05c82
chore(deps): update dependency pytest to v5.4.3 [(#4279)](https://git…
renovate-bot 86912c2
chore(deps): update dependency google-cloud-pubsub to v1.7.0 [(#4290)…
renovate-bot aed5c8a
chore(deps): update dependency google-cloud-containeranalysis to v1 […
renovate-bot d857e2b
chore(deps): update dependency google-cloud-containeranalysis to v1.0…
renovate-bot 0d0bee3
Update dependency pytest to v6 [(#4390)](https://github.com/GoogleClo…
renovate-bot 6c2d764
chore(deps): update dependency google-cloud-containeranalysis to v1.0…
renovate-bot fd03b00
feat!: move to microgen (#33)
busunkim96 eb867fa
chore(deps): update dependency google-cloud-containeranalysis to v2 (…
renovate-bot 594c83e
chore(deps): update dependency grafeas to v1.0.1 (#40)
renovate-bot df9b33d
chore(deps): update dependency google-cloud-pubsub to v2 (#46)
renovate-bot 4bc0208
chore(deps): update dependency google-cloud-containeranalysis to v2.1…
renovate-bot 5688a30
chore(deps): update dependency google-cloud-pubsub to v2.2.0 (#61)
renovate-bot 1ec4437
chore(deps): update dependency mock to v4.0.3 (#67)
renovate-bot 88fb496
chore(deps): update dependency google-cloud-containeranalysis to v2.2…
renovate-bot 65d790b
chore(deps): update dependency google-cloud-containeranalysis to v2.2…
renovate-bot cb27efa
chore(deps): update dependency google-cloud-pubsub to v2.3.0 (#88)
renovate-bot ae00261
chore(deps): update dependency google-cloud-pubsub to v2.4.0 (#94)
renovate-bot a55d170
fix: effective severity attribute error (#104)
askmeegs 95f3200
chore(deps): update dependency google-cloud-containeranalysis to v2.2…
renovate-bot 047b775
test: fix flaky test (#106)
dinagraves ca6be1b
chore(deps): update dependency google-cloud-pubsub to v2.4.1 (#108)
renovate-bot 8749249
chore(deps): update dependency google-cloud-containeranalysis to v2.2…
renovate-bot 33aaf50
chore(deps): update dependency pytest to v6.2.3 (#115)
renovate-bot 4f21cf8
chore(deps): update dependency pytest to v6.2.4 (#123)
renovate-bot b422cb3
chore(deps): update dependency google-cloud-pubsub to v2.4.2 (#126)
renovate-bot 3ef1464
chore(deps): update dependency google-cloud-pubsub to v2.5.0 (#131)
renovate-bot 05ae0f3
chore(deps): update dependency grafeas to v1.1.0 (#133)
renovate-bot 72d200a
chore(deps): update dependency google-cloud-containeranalysis to v2.3…
renovate-bot 7f5bd12
chore(deps): update dependency google-cloud-pubsub to v2.6.0 (#145)
renovate-bot 2dc36aa
chore(deps): update dependency google-cloud-containeranalysis to v2.4…
renovate-bot 4096a0c
chore(deps): update dependency google-cloud-pubsub to v2.6.1 (#153)
renovate-bot d1eb3c9
chore(deps): update dependency grafeas to v1.1.1 (#159)
renovate-bot d7c2f6f
chore(deps): update dependency google-cloud-containeranalysis to v2.4…
renovate-bot e36d3f4
chore(deps): update dependency grafeas to v1.1.2 (#166)
renovate-bot ff4f043
chore(deps): update dependency google-cloud-pubsub to v2.7.0 (#167)
renovate-bot 12c02f8
chore(deps): update dependency google-cloud-pubsub to v2.7.1 (#172)
renovate-bot e21b538
chore(deps): update dependency pytest to v6.2.5 (#176)
renovate-bot 34c316e
chore(deps): update dependency google-cloud-pubsub to v2.8.0 (#179)
renovate-bot 6b5df54
chore(deps): update all dependencies (#186)
renovate-bot 6f6fbeb
chore(deps): update dependency grafeas to v1.1.4 (#188)
renovate-bot 7aa905e
chore(deps): update dependency grafeas to v1.2.0 (#195)
renovate-bot f374822
chore(deps): update dependency google-cloud-containeranalysis to v2.5…
renovate-bot 8e804fc
chore(deps): update dependency grafeas to v1.3.0 (#199)
renovate-bot 3e02f1f
chore(deps): update dependency google-cloud-containeranalysis to v2.6…
renovate-bot 891011a
chore(deps): update dependency google-cloud-containeranalysis to v2.6…
renovate-bot b8866be
chore(deps): update all dependencies (#208)
renovate-bot d0de0e3
chore(deps): update dependency grafeas to v1.4.0 (#209)
renovate-bot 15be17b
chore(deps): update dependency google-cloud-pubsub to v2.9.0 (#213)
renovate-bot 68242a7
chore(deps): update all dependencies (#227)
renovate-bot 8401d95
chore(deps): update dependency google-cloud-containeranalysis to v2.6…
renovate-bot 1694713
chore(deps): update dependency google-cloud-containeranalysis to v2.7…
renovate-bot c761769
chore(deps): update dependency pytest to v7 (#243)
renovate-bot 235469f
chore(deps): update dependency pytest to v7.0.1 (#245)
renovate-bot 3692e6f
chore(deps): update dependency google-cloud-containeranalysis to v2.7…
renovate-bot 56007f7
chore(deps): update dependency grafeas to v1.4.2 (#249)
renovate-bot 4e43efe
chore(deps): update dependency google-cloud-pubsub to v2.10.0 (#255)
renovate-bot f69d7c1
chore(deps): update all dependencies (#256)
renovate-bot 90914c9
chore(deps): update dependency google-cloud-containeranalysis to v2.7…
renovate-bot 980b47b
chore(deps): update dependency google-cloud-pubsub to v2.11.0 (#259)
renovate-bot ea00cbc
chore(deps): update dependency pytest to v7.1.0 (#261)
renovate-bot c8b4507
chore(deps): update dependency pytest to v7.1.1 (#262)
renovate-bot ef90a07
chore(deps): update dependency google-cloud-pubsub to v2.12.0 (#274)
renovate-bot 5ece18d
chore(deps): update dependency pytest to v7.1.2 (#282)
renovate-bot 87502ef
chore(deps): update all dependencies (#286)
renovate-bot af59569
chore(deps): update dependency google-cloud-pubsub to v2.12.1 (#288)
renovate-bot f5f5f25
chore(deps): update all dependencies (#295)
renovate-bot f1dd8fb
chore(deps): update all dependencies (#308)
renovate-bot 520a7cf
chore(deps): update dependency google-cloud-pubsub to v2.13.5 (#309)
renovate-bot 96cf0c2
chore(deps): update dependency google-cloud-pubsub to v2.13.6 (#312)
renovate-bot be90843
chore(deps): update dependency grafeas to v1.5.1 (#314)
renovate-bot 64fab0c
chore(deps): update dependency google-cloud-containeranalysis to v2.9…
renovate-bot 0b6e4a8
chore(deps): update dependency pytest to v7.1.3 (#323)
renovate-bot e138c39
chore(deps): update dependency google-cloud-pubsub to v2.13.7 (#329)
renovate-bot 643866c
chore(deps): update all dependencies (#333)
renovate-bot c080b9d
chore(deps): update all dependencies (#336)
renovate-bot 12f2840
chore(deps): update dependency google-cloud-pubsub to v2.13.9 (#337)
renovate-bot c1c4a46
chore(deps): update dependency google-cloud-pubsub to v2.13.10 (#338)
renovate-bot 23bca0e
chore(deps): update dependency pytest to v7.2.0 (#339)
renovate-bot a4f386b
Merge remote-tracking branch 'migration/main' into python-containeran…
msampathkumar c9be51e
Update blunderbuss.yml and CODEOWNERS
msampathkumar b7b1f6a
Merge branch 'main' into python-containeranalysis-migration
dandhlee b6a6b69
Renamed `container_analysis` to `containeranalysis`
msampathkumar 7aaab5b
Merge branch 'main' into python-containeranalysis-migration
msampathkumar 508247a
Update README.md
msampathkumar d94571c
Merge branch 'main' into python-containeranalysis-migration
msampathkumar 298c692
Renamed files.
msampathkumar 4e34b90
Merge remote-tracking branch 'origin/python-containeranalysis-migrati…
msampathkumar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
venv* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google | ||
Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" | ||
width="96"/> | ||
|
||
# Google Cloud Container Analysis Samples | ||
|
||
|
||
Container Analysis scans container images stored in Container Registry for vulnerabilities. | ||
Continuous automated analysis of containers keep you informed about known vulnerabilities so | ||
that you can review and address issues before deployment. | ||
|
||
Additionally, third-party metadata providers can use Container Analysis to store and | ||
retrieve additional metadata for their customers' images, such as packages installed in an image. | ||
|
||
|
||
## Description | ||
|
||
These samples show how to use the [Google Cloud Container Analysis Client Library](https://cloud.google.com/container-registry/docs/reference/libraries). | ||
|
||
## Build and Run | ||
1. **Enable APIs** | ||
- [Enable the Container Analysis API](https://console.cloud.google.com/flows/enableapi?apiid=containeranalysis.googleapis.com) | ||
and create a new project or select an existing project. | ||
1. **Install and Initialize Cloud SDK** | ||
- Follow instructions from the available [quickstarts](https://cloud.google.com/sdk/docs/quickstarts) | ||
1. **Authenticate with GCP** | ||
- Typically, you should authenticate using a [service account key](https://cloud.google.com/docs/authentication/getting-started) | ||
1. **Clone the repo** and cd into this directory | ||
|
||
``` | ||
git clone https://github.com/GoogleCloudPlatform/python-docs-samples | ||
cd python-docs-samples | ||
``` | ||
|
||
1. **Set Environment Variables** | ||
|
||
``` | ||
export GCLOUD_PROJECT="YOUR_PROJECT_ID" | ||
``` | ||
|
||
1. **Run Tests** | ||
|
||
``` | ||
nox -s "py36(sample='./container_registry/container_analysis')" | ||
``` | ||
|
||
## Contributing changes | ||
|
||
* See [CONTRIBUTING.md](../../CONTRIBUTING.md) | ||
|
||
## Licensing | ||
|
||
* See [LICENSE](../../LICENSE) | ||
|
1 change: 1 addition & 0 deletions
1
container_registry/container_analysis/snippets/requirements-test.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pytest==7.2.0 |
6 changes: 6 additions & 0 deletions
6
container_registry/container_analysis/snippets/requirements.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
google-cloud-pubsub==2.13.10 | ||
google-cloud-containeranalysis==2.9.3 | ||
grafeas==1.6.1 | ||
pytest==7.2.0 | ||
flaky==3.7.0 | ||
mock==4.0.3 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.