Skip to content

Commit

Permalink
migrate code from googleapis/python-containeranalysis (#8529)
Browse files Browse the repository at this point in the history
* Container Analysis samples [(#2258)](#2258)

added container analysis samples and tests

* Update samples.py [(#2263)](#2263)

fixed typo in region tag

* Adds updates including compute [(#2436)](#2436)

* Adds updates including compute

* Python 2 compat pytest

* Fixing weird \r\n issue from GH merge

* Put asset tests back in

* Re-add pod operator test

* Hack parameter for k8s pod operator

* fix: Use different versions of pytest for python 2 and python3 [(#2558)](#2558)

* fix: Use different versions of pytest for python 2 and python3

* fix: delete extra pytest dep

* fix: update pytest dependencies in requirements.txt

* Simplify noxfile setup. [(#2806)](#2806)

* chore(deps): update dependency requests to v2.23.0

* Simplify noxfile and add version control.

* Configure appengine/standard to only test Python 2.7.

* Update Kokokro configs to match noxfile.

* Add requirements-test to each folder.

* Remove Py2 versions from everything execept appengine/standard.

* Remove conftest.py.

* Remove appengine/standard/conftest.py

* Remove 'no-sucess-flaky-report' from pytest.ini.

* Add GAE SDK back to appengine/standard tests.

* Fix typo.

* Roll pytest to python 2 version.

* Add a bunch of testing requirements.

* Remove typo.

* Add appengine lib directory back in.

* Add some additional requirements.

* Fix issue with flake8 args.

* Even more requirements.

* Readd appengine conftest.py.

* Add a few more requirements.

* Even more Appengine requirements.

* Add webtest for appengine/standard/mailgun.

* Add some additional requirements.

* Add workaround for issue with mailjet-rest.

* Add responses for appengine/standard/mailjet.

Co-authored-by: Renovate Bot <[email protected]>

* Update dependency mock to v4 [(#3216)](#3216)

* [container_registry] fix: fix broken test [(#3436)](#3436)

* [container_registry] fix: fix broken test

fixes #3435

* Use Pub/Sub message receiver that can notify main thread
  when it has received expected number of messages.
* Only test one single occurence.
* Use uuid4 wherever makes sense.
* test if Pub/Sub client receives at least one message

* Update dependency google-cloud-containeranalysis to v0.3.1 [(#3055)](#3055)

Co-authored-by: Leah E. Cole <[email protected]>

* Update dependency google-cloud-pubsub to v1.4.2 [(#3340)](#3340)

Co-authored-by: Leah E. Cole <[email protected]>

* [container analysis] effective severity [(#3478)](#3478)

Use new effective_severity field

fixes b/142836422

* [container_registry] fix: bump the pubsub timeout [(#3698)](#3698)

fixes #2894

Co-authored-by: Leah E. Cole <[email protected]>

* chore(deps): update dependency google-cloud-pubsub to v1.4.3 [(#3725)](#3725)

Co-authored-by: Bu Sun Kim <[email protected]>
Co-authored-by: Takashi Matsuo <[email protected]>

* [container-registry] fix: mark a flaky test [(#3765)](#3765)

fixes #2894

* chore(deps): update dependency grafeas to v0.4.0 [(#3172)](#3172)

* Update dependency grafeas to v0.4.0

* follow the field name changes

Co-authored-by: Leah E. Cole <[email protected]>
Co-authored-by: Takashi Matsuo <[email protected]>

* chore(deps): update dependency google-cloud-pubsub to v1.5.0 [(#3781)](#3781)

Co-authored-by: Bu Sun Kim <[email protected]>

* Replace GCLOUD_PROJECT with GOOGLE_CLOUD_PROJECT. [(#4022)](#4022)

* Update dependency google-cloud-pubsub to v1.6.0 [(#4039)](#4039)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [google-cloud-pubsub](https://togithub.com/googleapis/python-pubsub) | minor | `==1.5.0` -> `==1.6.0` |

---

### Release Notes

<details>
<summary>googleapis/python-pubsub</summary>

### [`v1.6.0`](https://togithub.com/googleapis/python-pubsub/blob/master/CHANGELOG.md#&#8203;160-httpswwwgithubcomgoogleapispython-pubsubcomparev150v160-2020-06-09)

[Compare Source](https://togithub.com/googleapis/python-pubsub/compare/v1.5.0...v1.6.0)

##### Features

-   Add flow control for message publishing ([#&#8203;96](https://www.github.com/googleapis/python-pubsub/issues/96)) ([06085c4](https://www.github.com/googleapis/python-pubsub/commit/06085c4083b9dccdd50383257799904510bbf3a0))

##### Bug Fixes

-   Fix PubSub incompatibility with api-core 1.17.0+ ([#&#8203;103](https://www.github.com/googleapis/python-pubsub/issues/103)) ([c02060f](https://www.github.com/googleapis/python-pubsub/commit/c02060fbbe6e2ca4664bee08d2de10665d41dc0b))

##### Documentation

-   Clarify that Schedulers shouldn't be used with multiple SubscriberClients ([#&#8203;100](https://togithub.com/googleapis/python-pubsub/pull/100)) ([cf9e87c](https://togithub.com/googleapis/python-pubsub/commit/cf9e87c80c0771f3fa6ef784a8d76cb760ad37ef))
-   Fix update subscription/snapshot/topic samples ([#&#8203;113](https://togithub.com/googleapis/python-pubsub/pull/113)) ([e62c38b](https://togithub.com/googleapis/python-pubsub/commit/e62c38bb33de2434e32f866979de769382dea34a))

##### Internal / Testing Changes

-   Re-generated service implementaton using synth: removed experimental notes from the RetryPolicy and filtering features in anticipation of GA, added DetachSubscription (experimental) ([#&#8203;114](https://togithub.com/googleapis/python-pubsub/pull/114)) ([0132a46](https://togithub.com/googleapis/python-pubsub/commit/0132a4680e0727ce45d5e27d98ffc9f3541a0962))
-   Incorporate will_accept() checks into publish() ([#&#8203;108](https://togithub.com/googleapis/python-pubsub/pull/108)) ([6c7677e](https://togithub.com/googleapis/python-pubsub/commit/6c7677ecb259672bbb9b6f7646919e602c698570))

</details>

---

### Renovate configuration

:date: **Schedule**: At any time (no schedule defined).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Never, or you tick the rebase/retry checkbox.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#GoogleCloudPlatform/python-docs-samples).

* chore(deps): update dependency grafeas to v0.4.1 [(#4200)](#4200)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [grafeas](https://togithub.com/googleapis/python-grafeas) | patch | `==0.4.0` -> `==0.4.1` |

---

### Release Notes

<details>
<summary>googleapis/python-grafeas</summary>

### [`v0.4.1`](https://togithub.com/googleapis/python-grafeas/blob/master/CHANGELOG.md#&#8203;041-httpswwwgithubcomgoogleapispython-grafeascomparev040v041-2020-06-25)

[Compare Source](https://togithub.com/googleapis/python-grafeas/compare/v0.4.0...v0.4.1)

</details>

---

### Renovate configuration

:date: **Schedule**: At any time (no schedule defined).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Never, or you tick the rebase/retry checkbox.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#GoogleCloudPlatform/python-docs-samples).

* chore(deps): update dependency google-cloud-pubsub to v1.6.1 [(#4242)](#4242)

Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com>

* chore(deps): update dependency flaky to v3.7.0 [(#4263)](#4263)

* chore(deps): update dependency pytest to v5.4.3 [(#4279)](#4279)

* chore(deps): update dependency pytest to v5.4.3

* specify pytest for python 2 in appengine

Co-authored-by: Leah Cole <[email protected]>

* chore(deps): update dependency google-cloud-pubsub to v1.7.0 [(#4290)](#4290)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [google-cloud-pubsub](https://togithub.com/googleapis/python-pubsub) | minor | `==1.6.1` -> `==1.7.0` |

---

### Release Notes

<details>
<summary>googleapis/python-pubsub</summary>

### [`v1.7.0`](https://togithub.com/googleapis/python-pubsub/blob/master/CHANGELOG.md#&#8203;170-httpswwwgithubcomgoogleapispython-pubsubcomparev161v170-2020-07-13)

[Compare Source](https://togithub.com/googleapis/python-pubsub/compare/v1.6.1...v1.7.0)

##### New Features

-   Add support for server-side flow control. ([#&#8203;143](https://togithub.com/googleapis/python-pubsub/pull/143)) ([04e261c](https://www.github.com/googleapis/python-pubsub/commit/04e261c602a2919cc75b3efa3dab099fb2cf704c))

##### Dependencies

-   Update samples dependency `google-cloud-pubsub` to `v1.6.1`. ([#&#8203;144](https://togithub.com/googleapis/python-pubsub/pull/144)) ([1cb6746](https://togithub.com/googleapis/python-pubsub/commit/1cb6746b00ebb23dbf1663bae301b32c3fc65a88))

##### Documentation

-   Add pubsub/cloud-client samples from the common samples repo (with commit history). ([#&#8203;151](https://togithub.com/googleapis/python-pubsub/pull/151)) 
-   Add flow control section to publish overview. ([#&#8203;129](https://togithub.com/googleapis/python-pubsub/pull/129)) ([acc19eb](https://www.github.com/googleapis/python-pubsub/commit/acc19eb048eef067d9818ef3e310b165d9c6307e))
-   Add a link to Pub/Sub filtering language public documentation to `pubsub.proto`. ([#&#8203;121](https://togithub.com/googleapis/python-pubsub/pull/121)) ([8802d81](https://www.github.com/googleapis/python-pubsub/commit/8802d8126247f22e26057e68a42f5b5a82dcbf0d))

</details>

---

### Renovate configuration

:date: **Schedule**: At any time (no schedule defined).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#GoogleCloudPlatform/python-docs-samples).

* chore(deps): update dependency google-cloud-containeranalysis to v1 [(#4108)](#4108)

* chore(deps): update dependency google-cloud-containeranalysis to v1.0.2 [(#4367)](#4367)

* Update dependency pytest to v6 [(#4390)](#4390)

* chore(deps): update dependency google-cloud-containeranalysis to v1.0.3 (#31)

* feat!: move to microgen (#33)

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-containeranalysis/issues/new/choose) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

* chore(deps): update dependency google-cloud-containeranalysis to v2 (#41)

* chore(deps): update dependency grafeas to v1.0.1 (#40)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [grafeas](https://togithub.com/googleapis/python-grafeas) | patch | `==1.0.0` -> `==1.0.1` |

---

### Release Notes

<details>
<summary>googleapis/python-grafeas</summary>

### [`v1.0.1`](https://togithub.com/googleapis/python-grafeas/blob/master/CHANGELOG.md#&#8203;101-httpswwwgithubcomgoogleapispython-grafeascomparev100v101-2020-08-12)

[Compare Source](https://togithub.com/googleapis/python-grafeas/compare/v1.0.0...v1.0.1)

</details>

---

### Renovate configuration

:date: **Schedule**: At any time (no schedule defined).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-containeranalysis).

* chore(deps): update dependency google-cloud-pubsub to v2 (#46)

Updated sample to use pubsub v2

* chore(deps): update dependency google-cloud-containeranalysis to v2.1.0 (#56)

* chore(deps): update dependency google-cloud-pubsub to v2.2.0 (#61)

* chore(deps): update dependency mock to v4.0.3 (#67)

* chore(deps): update dependency google-cloud-containeranalysis to v2.2.0 (#76)

* chore(deps): update dependency google-cloud-containeranalysis to v2.2.1 (#91)

* chore(deps): update dependency google-cloud-pubsub to v2.3.0 (#88)

* chore(deps): update dependency google-cloud-pubsub to v2.4.0 (#94)

* fix: effective severity attribute error (#104)

* chore(deps): update dependency google-cloud-containeranalysis to v2.2.2 (#107)

* test: fix flaky test (#106)

* test: fix flaky test

* chore(deps): update dependency google-cloud-pubsub to v2.4.1 (#108)

* chore(deps): update dependency google-cloud-containeranalysis to v2.2.3 (#111)

* chore(deps): update dependency pytest to v6.2.3 (#115)

* chore(deps): update dependency pytest to v6.2.4 (#123)

* chore(deps): update dependency google-cloud-pubsub to v2.4.2 (#126)

* chore(deps): update dependency google-cloud-pubsub to v2.5.0 (#131)

* chore(deps): update dependency grafeas to v1.1.0 (#133)

* chore(deps): update dependency google-cloud-containeranalysis to v2.3.0 (#138)

* chore(deps): update dependency google-cloud-pubsub to v2.6.0 (#145)

[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [google-cloud-pubsub](https://togithub.com/googleapis/python-pubsub) | `==2.5.0` -> `==2.6.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-pubsub/2.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-pubsub/2.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-pubsub/2.6.0/compatibility-slim/2.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-pubsub/2.6.0/confidence-slim/2.5.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/python-pubsub</summary>

### [`v2.6.0`](https://togithub.com/googleapis/python-pubsub/blob/master/CHANGELOG.md#&#8203;260-httpswwwgithubcomgoogleapispython-pubsubcomparev250v260-2021-06-17)

[Compare Source](https://togithub.com/googleapis/python-pubsub/compare/v2.5.0...v2.6.0)

##### Features

-   support customizable retry and timeout settings on the publisher client ([#&#8203;299](https://www.github.com/googleapis/python-pubsub/issues/299)) ([7597604](https://www.github.com/googleapis/python-pubsub/commit/7597604b41fa3a1e9bf34addc35c8647dde007cc))

##### Bug Fixes

-   ACK deadline set for received messages can be too low  ([#&#8203;416](https://www.github.com/googleapis/python-pubsub/issues/416)) ([e907f6e](https://www.github.com/googleapis/python-pubsub/commit/e907f6e05f59f64a3b08df3304e92ec960997be6))
-   threads can skip the line in publisher flow controller ([#&#8203;422](https://www.github.com/googleapis/python-pubsub/issues/422)) ([ef89f55](https://www.github.com/googleapis/python-pubsub/commit/ef89f55a41044e9ad26b91132b4b1be9c7b2c127))

##### Documentation

-   block until the streaming pull shuts down ([#&#8203;424](https://www.github.com/googleapis/python-pubsub/issues/424)) ([d0d0b70](https://www.github.com/googleapis/python-pubsub/commit/d0d0b704642df8dee893d3f585aeb666e19696fb))
-   explain that future.cancel() is non-blocking ([#&#8203;420](https://www.github.com/googleapis/python-pubsub/issues/420)) ([c825789](https://www.github.com/googleapis/python-pubsub/commit/c825789bdff310f44cbb132a723e99d1e6331d8f))

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-containeranalysis).

* chore(deps): update dependency google-cloud-containeranalysis to v2.4.0 (#152)

[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [google-cloud-containeranalysis](https://togithub.com/googleapis/python-containeranalysis) | `==2.3.0` -> `==2.4.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-containeranalysis/2.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-containeranalysis/2.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-containeranalysis/2.4.0/compatibility-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-containeranalysis/2.4.0/confidence-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/python-containeranalysis</summary>

### [`v2.4.0`](https://togithub.com/googleapis/python-containeranalysis/blob/master/CHANGELOG.md#&#8203;240-httpswwwgithubcomgoogleapispython-containeranalysiscomparev230v240-2021-06-30)

[Compare Source](https://togithub.com/googleapis/python-containeranalysis/compare/v2.3.0...v2.4.0)

##### Features

-   add always_use_jwt_access ([#&#8203;147](https://www.github.com/googleapis/python-containeranalysis/issues/147)) ([1f55871](https://www.github.com/googleapis/python-containeranalysis/commit/1f558713a683e3b48d9d7fba2c015e92818850fd))

##### Bug Fixes

-   disable always_use_jwt_access ([#&#8203;151](https://www.github.com/googleapis/python-containeranalysis/issues/151)) ([7768ae1](https://www.github.com/googleapis/python-containeranalysis/commit/7768ae1ce4a32fa25ef5c0fb86f8981fed038297))

##### Documentation

-   omit mention of Python 2.7 in 'CONTRIBUTING.rst' ([#&#8203;1127](https://www.github.com/googleapis/python-containeranalysis/issues/1127)) ([#&#8203;141](https://www.github.com/googleapis/python-containeranalysis/issues/141)) ([a588841](https://www.github.com/googleapis/python-containeranalysis/commit/a58884154f23caf453040ad314c0a2d4416952f2))

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-containeranalysis).

* chore(deps): update dependency google-cloud-pubsub to v2.6.1 (#153)

* chore(deps): update dependency grafeas to v1.1.1 (#159)

* chore(deps): update dependency google-cloud-containeranalysis to v2.4.1 (#165)

[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [google-cloud-containeranalysis](https://togithub.com/googleapis/python-containeranalysis) | `==2.4.0` -> `==2.4.1` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-containeranalysis/2.4.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-containeranalysis/2.4.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-containeranalysis/2.4.1/compatibility-slim/2.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-containeranalysis/2.4.1/confidence-slim/2.4.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/python-containeranalysis</summary>

### [`v2.4.1`](https://togithub.com/googleapis/python-containeranalysis/blob/master/CHANGELOG.md#&#8203;241-httpswwwgithubcomgoogleapispython-containeranalysiscomparev240v241-2021-07-26)

[Compare Source](https://togithub.com/googleapis/python-containeranalysis/compare/v2.4.0...v2.4.1)

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-containeranalysis).

* chore(deps): update dependency grafeas to v1.1.2 (#166)

* chore(deps): update dependency google-cloud-pubsub to v2.7.0 (#167)

* chore(deps): update dependency google-cloud-pubsub to v2.7.1 (#172)

* chore(deps): update dependency pytest to v6.2.5 (#176)

* chore(deps): update dependency google-cloud-pubsub to v2.8.0 (#179)

* chore(deps): update all dependencies (#186)

* chore(deps): update dependency grafeas to v1.1.4 (#188)

* chore(deps): update dependency grafeas to v1.2.0 (#195)

* chore(deps): update dependency google-cloud-containeranalysis to v2.5.0 (#196)

* chore(deps): update dependency grafeas to v1.3.0 (#199)

* chore(deps): update dependency google-cloud-containeranalysis to v2.6.0 (#200)

* chore(deps): update dependency google-cloud-containeranalysis to v2.6.1 (#205)

* chore(deps): update all dependencies (#208)

* chore(deps): update dependency grafeas to v1.4.0 (#209)

* chore(deps): update dependency google-cloud-pubsub to v2.9.0 (#213)

* chore(deps): update all dependencies (#227)

* chore(deps): update all dependencies

* remove python 2.7 from testing

Co-authored-by: Dina Graves Portman <[email protected]>
Co-authored-by: Anthonios Partheniou <[email protected]>

* chore(deps): update dependency google-cloud-containeranalysis to v2.6.3 (#230)

Co-authored-by: Anthonios Partheniou <[email protected]>

* chore(deps): update dependency google-cloud-containeranalysis to v2.7.0 (#238)

Co-authored-by: Anthonios Partheniou <[email protected]>

* chore(deps): update dependency pytest to v7 (#243)

* chore(deps): update dependency pytest to v7.0.1 (#245)

[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [pytest](https://docs.pytest.org/en/latest/) ([source](https://togithub.com/pytest-dev/pytest), [changelog](https://docs.pytest.org/en/stable/changelog.html)) | `==7.0.0` -> `==7.0.1` | [![age](https://badges.renovateapi.com/packages/pypi/pytest/7.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/pytest/7.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/pytest/7.0.1/compatibility-slim/7.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/pytest/7.0.1/confidence-slim/7.0.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>pytest-dev/pytest</summary>

### [`v7.0.1`](https://togithub.com/pytest-dev/pytest/releases/7.0.1)

[Compare Source](https://togithub.com/pytest-dev/pytest/compare/7.0.0...7.0.1)

# pytest 7.0.1 (2022-02-11)

## Bug Fixes

-   [#&#8203;9608](https://togithub.com/pytest-dev/pytest/issues/9608): Fix invalid importing of `importlib.readers` in Python 3.9.
-   [#&#8203;9610](https://togithub.com/pytest-dev/pytest/issues/9610): Restore \[UnitTestFunction.obj]{.title-ref} to return unbound rather than bound method.
    Fixes a crash during a failed teardown in unittest TestCases with non-default \[\__init\_\_]{.title-ref}.
    Regressed in pytest 7.0.0.
-   [#&#8203;9636](https://togithub.com/pytest-dev/pytest/issues/9636): The `pythonpath` plugin was renamed to `python_path`. This avoids a conflict with the `pytest-pythonpath` plugin.
-   [#&#8203;9642](https://togithub.com/pytest-dev/pytest/issues/9642): Fix running tests by id with `::` in the parametrize portion.
-   [#&#8203;9643](https://togithub.com/pytest-dev/pytest/issues/9643): Delay issuing a `~pytest.PytestWarning`{.interpreted-text role="class"} about diamond inheritance involving `~pytest.Item`{.interpreted-text role="class"} and
    `~pytest.Collector`{.interpreted-text role="class"} so it can be filtered using `standard warning filters <warnings>`{.interpreted-text role="ref"}.

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-containeranalysis).

* chore(deps): update dependency google-cloud-containeranalysis to v2.7.1 (#246)

[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [google-cloud-containeranalysis](https://togithub.com/googleapis/python-containeranalysis) | `==2.7.0` -> `==2.7.1` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-containeranalysis/2.7.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-containeranalysis/2.7.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-containeranalysis/2.7.1/compatibility-slim/2.7.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-containeranalysis/2.7.1/confidence-slim/2.7.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/python-containeranalysis</summary>

### [`v2.7.1`](https://togithub.com/googleapis/python-containeranalysis/blob/HEAD/CHANGELOG.md#&#8203;271-httpsgithubcomgoogleapispython-containeranalysiscomparev270v271-2022-02-11)

[Compare Source](https://togithub.com/googleapis/python-containeranalysis/compare/v2.7.0...v2.7.1)

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-containeranalysis).

* chore(deps): update dependency grafeas to v1.4.2 (#249)

* chore(deps): update dependency google-cloud-pubsub to v2.10.0 (#255)

* chore(deps): update all dependencies (#256)

Co-authored-by: Anthonios Partheniou <[email protected]>

* chore(deps): update dependency google-cloud-containeranalysis to v2.7.3 (#258)

* chore(deps): update dependency google-cloud-pubsub to v2.11.0 (#259)

* chore(deps): update dependency pytest to v7.1.0 (#261)

* chore(deps): update dependency pytest to v7.1.1 (#262)

* chore(deps): update dependency google-cloud-pubsub to v2.12.0 (#274)

* chore(deps): update dependency pytest to v7.1.2 (#282)

* chore(deps): update all dependencies (#286)

* chore(deps): update dependency google-cloud-pubsub to v2.12.1 (#288)

* chore(deps): update all dependencies (#295)

* chore(deps): update all dependencies

* revert

Co-authored-by: Anthonios Partheniou <[email protected]>
Co-authored-by: Ace Nassri <[email protected]>

* chore(deps): update all dependencies (#308)

* chore(deps): update all dependencies

* revert

Co-authored-by: Anthonios Partheniou <[email protected]>

* chore(deps): update dependency google-cloud-pubsub to v2.13.5 (#309)

* chore(deps): update dependency google-cloud-pubsub to v2.13.6 (#312)

* chore(deps): update dependency grafeas to v1.5.1 (#314)

Co-authored-by: Anthonios Partheniou <[email protected]>

* chore(deps): update dependency google-cloud-containeranalysis to v2.9.1 (#315)

* chore(deps): update dependency pytest to v7.1.3 (#323)

* chore(deps): update dependency google-cloud-pubsub to v2.13.7 (#329)

Co-authored-by: Anthonios Partheniou <[email protected]>

* chore(deps): update all dependencies (#333)

* chore(deps): update all dependencies (#336)

* chore(deps): update dependency google-cloud-pubsub to v2.13.9 (#337)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [google-cloud-pubsub](https://togithub.com/googleapis/python-pubsub) | `==2.13.7` -> `==2.13.9` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-pubsub/2.13.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-pubsub/2.13.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-pubsub/2.13.9/compatibility-slim/2.13.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-pubsub/2.13.9/confidence-slim/2.13.7)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/python-pubsub</summary>

### [`v2.13.9`](https://togithub.com/googleapis/python-pubsub/releases/tag/v2.13.9)

[Compare Source](https://togithub.com/googleapis/python-pubsub/compare/v2.13.7...v2.13.9)

##### Bug Fixes

-   **deps:** Allow protobuf 3.19.5 ([#&#8203;801](https://togithub.com/googleapis/python-pubsub/issues/801)) ([fa23503](https://togithub.com/googleapis/python-pubsub/commit/fa235033481783c2ec378b2a26b223bdff206461))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-containeranalysis).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMzAuMCIsInVwZGF0ZWRJblZlciI6IjMyLjIzMC4wIn0=-->

* chore(deps): update dependency google-cloud-pubsub to v2.13.10 (#338)

* chore(deps): update dependency pytest to v7.2.0 (#339)

* Update blunderbuss.yml and CODEOWNERS

* Renamed `container_analysis` to  `containeranalysis`

* Update README.md

* Renamed files.

Co-authored-by: Daniel Sanche <[email protected]>
Co-authored-by: Gus Class <[email protected]>
Co-authored-by: Christopher Wilcox <[email protected]>
Co-authored-by: Kurtis Van Gent <[email protected]>
Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Takashi Matsuo <[email protected]>
Co-authored-by: Leah E. Cole <[email protected]>
Co-authored-by: Bu Sun Kim <[email protected]>
Co-authored-by: gcf-merge-on-green[bot] <60162190+gcf-merge-on-green[bot]@users.noreply.github.com>
Co-authored-by: Leah Cole <[email protected]>
Co-authored-by: Megan O'Keefe <[email protected]>
Co-authored-by: Dina Graves Portman <[email protected]>
Co-authored-by: Anthonios Partheniou <[email protected]>
Co-authored-by: Ace Nassri <[email protected]>
Co-authored-by: Dan Lee <[email protected]>
  • Loading branch information
16 people authored Nov 23, 2022
1 parent 16ff341 commit 6982717
Show file tree
Hide file tree
Showing 9 changed files with 757 additions and 3 deletions.
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

0 comments on commit 6982717

Please sign in to comment.