Skip to content
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

migrate code from googleapis/python-containeranalysis #8529

Merged
merged 107 commits into from
Nov 23, 2022
Merged
Show file tree
Hide file tree
Changes from all 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 Jul 9, 2019
93dd480
Update samples.py [(#2263)](https://github.com/GoogleCloudPlatform/py…
daniel-sanche Jul 10, 2019
96f6ab1
Adds updates including compute [(#2436)](https://github.com/GoogleClo…
gguuss Oct 23, 2019
ba69dc1
fix: Use different versions of pytest for python 2 and python3 [(#255…
crwilcox Nov 20, 2019
ea362f3
Simplify noxfile setup. [(#2806)](https://github.com/GoogleCloudPlatf…
kurtisvg Apr 2, 2020
f815dfc
Update dependency mock to v4 [(#3216)](https://github.com/GoogleCloud…
renovate-bot Apr 2, 2020
1bc92fe
[container_registry] fix: fix broken test [(#3436)](https://github.co…
Apr 22, 2020
7539962
Update dependency google-cloud-containeranalysis to v0.3.1 [(#3055)](…
renovate-bot Apr 22, 2020
3e6ab21
Update dependency google-cloud-pubsub to v1.4.2 [(#3340)](https://git…
busunkim96 Apr 22, 2020
a98ded1
[container analysis] effective severity [(#3478)](https://github.com/…
daniel-sanche Apr 23, 2020
84e07a8
[container_registry] fix: bump the pubsub timeout [(#3698)](https://g…
May 7, 2020
133a429
chore(deps): update dependency google-cloud-pubsub to v1.4.3 [(#3725)…
renovate-bot May 13, 2020
057ceec
[container-registry] fix: mark a flaky test [(#3765)](https://github.…
May 15, 2020
77265d6
chore(deps): update dependency grafeas to v0.4.0 [(#3172)](https://gi…
renovate-bot May 17, 2020
f12ab0d
chore(deps): update dependency google-cloud-pubsub to v1.5.0 [(#3781)…
renovate-bot May 21, 2020
9427335
Replace GCLOUD_PROJECT with GOOGLE_CLOUD_PROJECT. [(#4022)](https://g…
kurtisvg Jun 9, 2020
163c55c
Update dependency google-cloud-pubsub to v1.6.0 [(#4039)](https://git…
renovate-bot Jun 20, 2020
bddc99d
chore(deps): update dependency grafeas to v0.4.1 [(#4200)](https://gi…
renovate-bot Jun 29, 2020
4ce25b1
chore(deps): update dependency google-cloud-pubsub to v1.6.1 [(#4242)…
renovate-bot Jul 6, 2020
06af00f
chore(deps): update dependency flaky to v3.7.0 [(#4263)](https://gith…
renovate-bot Jul 8, 2020
7e05c82
chore(deps): update dependency pytest to v5.4.3 [(#4279)](https://git…
renovate-bot Jul 12, 2020
86912c2
chore(deps): update dependency google-cloud-pubsub to v1.7.0 [(#4290)…
renovate-bot Jul 14, 2020
aed5c8a
chore(deps): update dependency google-cloud-containeranalysis to v1 […
renovate-bot Jul 24, 2020
d857e2b
chore(deps): update dependency google-cloud-containeranalysis to v1.0…
renovate-bot Jul 24, 2020
0d0bee3
Update dependency pytest to v6 [(#4390)](https://github.com/GoogleClo…
renovate-bot Aug 1, 2020
6c2d764
chore(deps): update dependency google-cloud-containeranalysis to v1.0…
renovate-bot Aug 11, 2020
fd03b00
feat!: move to microgen (#33)
busunkim96 Aug 12, 2020
eb867fa
chore(deps): update dependency google-cloud-containeranalysis to v2 (…
renovate-bot Oct 16, 2020
594c83e
chore(deps): update dependency grafeas to v1.0.1 (#40)
renovate-bot Oct 16, 2020
df9b33d
chore(deps): update dependency google-cloud-pubsub to v2 (#46)
renovate-bot Oct 19, 2020
4bc0208
chore(deps): update dependency google-cloud-containeranalysis to v2.1…
renovate-bot Nov 19, 2020
5688a30
chore(deps): update dependency google-cloud-pubsub to v2.2.0 (#61)
renovate-bot Dec 5, 2020
1ec4437
chore(deps): update dependency mock to v4.0.3 (#67)
renovate-bot Dec 11, 2020
88fb496
chore(deps): update dependency google-cloud-containeranalysis to v2.2…
renovate-bot Jan 6, 2021
65d790b
chore(deps): update dependency google-cloud-containeranalysis to v2.2…
renovate-bot Feb 16, 2021
cb27efa
chore(deps): update dependency google-cloud-pubsub to v2.3.0 (#88)
renovate-bot Feb 16, 2021
ae00261
chore(deps): update dependency google-cloud-pubsub to v2.4.0 (#94)
renovate-bot Feb 23, 2021
a55d170
fix: effective severity attribute error (#104)
askmeegs Mar 25, 2021
95f3200
chore(deps): update dependency google-cloud-containeranalysis to v2.2…
renovate-bot Mar 30, 2021
047b775
test: fix flaky test (#106)
dinagraves Apr 2, 2021
ca6be1b
chore(deps): update dependency google-cloud-pubsub to v2.4.1 (#108)
renovate-bot Apr 2, 2021
8749249
chore(deps): update dependency google-cloud-containeranalysis to v2.2…
renovate-bot Apr 3, 2021
33aaf50
chore(deps): update dependency pytest to v6.2.3 (#115)
renovate-bot Apr 12, 2021
4f21cf8
chore(deps): update dependency pytest to v6.2.4 (#123)
renovate-bot May 4, 2021
b422cb3
chore(deps): update dependency google-cloud-pubsub to v2.4.2 (#126)
renovate-bot May 12, 2021
3ef1464
chore(deps): update dependency google-cloud-pubsub to v2.5.0 (#131)
renovate-bot May 20, 2021
05ae0f3
chore(deps): update dependency grafeas to v1.1.0 (#133)
renovate-bot May 20, 2021
72d200a
chore(deps): update dependency google-cloud-containeranalysis to v2.3…
renovate-bot May 27, 2021
7f5bd12
chore(deps): update dependency google-cloud-pubsub to v2.6.0 (#145)
renovate-bot Jun 26, 2021
2dc36aa
chore(deps): update dependency google-cloud-containeranalysis to v2.4…
renovate-bot Jul 1, 2021
4096a0c
chore(deps): update dependency google-cloud-pubsub to v2.6.1 (#153)
renovate-bot Jul 12, 2021
d1eb3c9
chore(deps): update dependency grafeas to v1.1.1 (#159)
renovate-bot Jul 26, 2021
d7c2f6f
chore(deps): update dependency google-cloud-containeranalysis to v2.4…
renovate-bot Jul 27, 2021
e36d3f4
chore(deps): update dependency grafeas to v1.1.2 (#166)
renovate-bot Jul 28, 2021
ff4f043
chore(deps): update dependency google-cloud-pubsub to v2.7.0 (#167)
renovate-bot Jul 28, 2021
12c02f8
chore(deps): update dependency google-cloud-pubsub to v2.7.1 (#172)
renovate-bot Aug 20, 2021
e21b538
chore(deps): update dependency pytest to v6.2.5 (#176)
renovate-bot Aug 31, 2021
34c316e
chore(deps): update dependency google-cloud-pubsub to v2.8.0 (#179)
renovate-bot Sep 7, 2021
6b5df54
chore(deps): update all dependencies (#186)
renovate-bot Sep 24, 2021
6f6fbeb
chore(deps): update dependency grafeas to v1.1.4 (#188)
renovate-bot Sep 30, 2021
7aa905e
chore(deps): update dependency grafeas to v1.2.0 (#195)
renovate-bot Oct 11, 2021
f374822
chore(deps): update dependency google-cloud-containeranalysis to v2.5…
renovate-bot Oct 13, 2021
8e804fc
chore(deps): update dependency grafeas to v1.3.0 (#199)
renovate-bot Oct 20, 2021
3e02f1f
chore(deps): update dependency google-cloud-containeranalysis to v2.6…
renovate-bot Oct 25, 2021
891011a
chore(deps): update dependency google-cloud-containeranalysis to v2.6…
renovate-bot Oct 29, 2021
b8866be
chore(deps): update all dependencies (#208)
renovate-bot Nov 2, 2021
d0de0e3
chore(deps): update dependency grafeas to v1.4.0 (#209)
renovate-bot Nov 4, 2021
15be17b
chore(deps): update dependency google-cloud-pubsub to v2.9.0 (#213)
renovate-bot Nov 11, 2021
68242a7
chore(deps): update all dependencies (#227)
renovate-bot Jan 13, 2022
8401d95
chore(deps): update dependency google-cloud-containeranalysis to v2.6…
renovate-bot Jan 16, 2022
1694713
chore(deps): update dependency google-cloud-containeranalysis to v2.7…
renovate-bot Feb 7, 2022
c761769
chore(deps): update dependency pytest to v7 (#243)
renovate-bot Feb 8, 2022
235469f
chore(deps): update dependency pytest to v7.0.1 (#245)
renovate-bot Feb 11, 2022
3692e6f
chore(deps): update dependency google-cloud-containeranalysis to v2.7…
renovate-bot Feb 23, 2022
56007f7
chore(deps): update dependency grafeas to v1.4.2 (#249)
renovate-bot Mar 1, 2022
4e43efe
chore(deps): update dependency google-cloud-pubsub to v2.10.0 (#255)
renovate-bot Mar 4, 2022
f69d7c1
chore(deps): update all dependencies (#256)
renovate-bot Mar 7, 2022
90914c9
chore(deps): update dependency google-cloud-containeranalysis to v2.7…
renovate-bot Mar 8, 2022
980b47b
chore(deps): update dependency google-cloud-pubsub to v2.11.0 (#259)
renovate-bot Mar 10, 2022
ea00cbc
chore(deps): update dependency pytest to v7.1.0 (#261)
renovate-bot Mar 13, 2022
c8b4507
chore(deps): update dependency pytest to v7.1.1 (#262)
renovate-bot Mar 19, 2022
ef90a07
chore(deps): update dependency google-cloud-pubsub to v2.12.0 (#274)
renovate-bot Apr 7, 2022
5ece18d
chore(deps): update dependency pytest to v7.1.2 (#282)
renovate-bot Apr 25, 2022
87502ef
chore(deps): update all dependencies (#286)
renovate-bot May 5, 2022
af59569
chore(deps): update dependency google-cloud-pubsub to v2.12.1 (#288)
renovate-bot May 12, 2022
f5f5f25
chore(deps): update all dependencies (#295)
renovate-bot Jul 15, 2022
f1dd8fb
chore(deps): update all dependencies (#308)
renovate-bot Aug 2, 2022
520a7cf
chore(deps): update dependency google-cloud-pubsub to v2.13.5 (#309)
renovate-bot Aug 11, 2022
96cf0c2
chore(deps): update dependency google-cloud-pubsub to v2.13.6 (#312)
renovate-bot Aug 12, 2022
be90843
chore(deps): update dependency grafeas to v1.5.1 (#314)
renovate-bot Aug 17, 2022
64fab0c
chore(deps): update dependency google-cloud-containeranalysis to v2.9…
renovate-bot Aug 17, 2022
0b6e4a8
chore(deps): update dependency pytest to v7.1.3 (#323)
renovate-bot Sep 6, 2022
e138c39
chore(deps): update dependency google-cloud-pubsub to v2.13.7 (#329)
renovate-bot Oct 4, 2022
643866c
chore(deps): update all dependencies (#333)
renovate-bot Oct 4, 2022
c080b9d
chore(deps): update all dependencies (#336)
renovate-bot Oct 10, 2022
12f2840
chore(deps): update dependency google-cloud-pubsub to v2.13.9 (#337)
renovate-bot Oct 11, 2022
c1c4a46
chore(deps): update dependency google-cloud-pubsub to v2.13.10 (#338)
renovate-bot Oct 18, 2022
23bca0e
chore(deps): update dependency pytest to v7.2.0 (#339)
renovate-bot Oct 26, 2022
a4f386b
Merge remote-tracking branch 'migration/main' into python-containeran…
msampathkumar Nov 18, 2022
c9be51e
Update blunderbuss.yml and CODEOWNERS
msampathkumar Nov 18, 2022
b7b1f6a
Merge branch 'main' into python-containeranalysis-migration
dandhlee Nov 18, 2022
b6a6b69
Renamed `container_analysis` to `containeranalysis`
msampathkumar Nov 21, 2022
7aaab5b
Merge branch 'main' into python-containeranalysis-migration
msampathkumar Nov 21, 2022
508247a
Update README.md
msampathkumar Nov 22, 2022
d94571c
Merge branch 'main' into python-containeranalysis-migration
msampathkumar Nov 22, 2022
298c692
Renamed files.
msampathkumar Nov 23, 2022
4e34b90
Merge remote-tracking branch 'origin/python-containeranalysis-migrati…
msampathkumar Nov 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
/composer/**/* @leahecole @rachael-ds @rafalbiegacz @GoogleCloudPlatform/python-samples-reviewers
/compute/**/* @m-strzelczyk @GoogleCloudPlatform/dee-infra @GoogleCloudPlatform/python-samples-reviewers
/container/**/* @GoogleCloudPlatform/dee-platform-ops @GoogleCloudPlatform/python-samples-reviewers
/containeranalysis/**/* @GoogleCloudPlatform/aap-dpes @GoogleCloudPlatform/python-samples-reviewers
/data-science-onramp/ @leahecole @bradmiro @GoogleCloudPlatform/python-samples-reviewers
/datacatalog/**/* @GoogleCloudPlatform/python-samples-reviewers
/dataflow/**/* @davidcavazos @GoogleCloudPlatform/python-samples-reviewers
Expand Down
4 changes: 4 additions & 0 deletions .github/blunderbuss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ assign_issues_by:
- 'api: texttospeech'
to:
- GoogleCloudPlatform/dee-platform-ops
- labels:
- 'api: containeranalysis'
to:
- GoogleCloudPlatform/aap-dpes
- labels:
- 'api: datascienceonramp'
to:
Expand Down
3 changes: 0 additions & 3 deletions container_registry/container_analysis/README.md

This file was deleted.

1 change: 1 addition & 0 deletions containeranalysis/snippets/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
venv*
54 changes: 54 additions & 0 deletions containeranalysis/snippets/README.md
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='./containeranalysis')"
```

## Contributing changes

* See [CONTRIBUTING.md](../../CONTRIBUTING.md)

## Licensing

* See [LICENSE](../../LICENSE)

1 change: 1 addition & 0 deletions containeranalysis/snippets/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pytest==7.2.0
6 changes: 6 additions & 0 deletions containeranalysis/snippets/requirements.txt
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
Loading