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

Switch to pull non-secret values from env #624

Merged
merged 1 commit into from
Mar 24, 2023
Merged

Switch to pull non-secret values from env #624

merged 1 commit into from
Mar 24, 2023

Conversation

sethvargo
Copy link
Member

No description provided.

@sethvargo sethvargo requested a review from a team as a code owner March 24, 2023 17:53
@sethvargo sethvargo enabled auto-merge (squash) March 24, 2023 17:53
@sethvargo sethvargo merged commit 4e64424 into main Mar 24, 2023
@sethvargo sethvargo deleted the sethvargo/vars branch March 24, 2023 20:46
@rtrzebinski
Copy link

isn't README.md outdated now still mentioning 'secrets'?

@sethvargo
Copy link
Member Author

You can use secrets or variables. We have examples using secrets in the readme because it's possible for project-ids to contain PII or secret information.

@rtrzebinski
Copy link

I understand, but docs should math the example, otherwise it won't work.

@sethvargo
Copy link
Member Author

@rtrzebinski - I'm not sure I understand. Our internal implementation is separate from the documentation.

@rtrzebinski
Copy link

I mean README.md here in the repo.

@sethvargo
Copy link
Member Author

I still don't understand what you're talking about. This PR switches to use non-secrets for data that we consider to be non-secret. For example, we do not consider Google Cloud Project IDs to be a secret in this project because it doesn't give away any information. Since Project IDs are named by end-users, they could contain PII and therefore might be stored as secrets or variables. The resolution of secrets and variables is handled by GitHub, not us; it gets interpolated into the YAML.

The README references secrets.GCP_CREDENTIALS, which is a secret and remains a secret.

Again, I'm not really sure I understand what you're saying.

@rtrzebinski
Copy link

In the following PR:

https://github.com/google-github-actions/setup-gcloud/pull/624/files

In file:

example-workflows/gke/.github/workflows/gke.yml

The change:

-  PROJECT_ID: ${{ secrets.GKE_PROJECT }}
+ PROJECT_ID: ${{ vars.GKE_PROJECT }}

Is not reflected in file:

https://github.com/google-github-actions/setup-gcloud/blob/main/example-workflows/gke/README.md

Which is still saying:

Add the following secrets to your repository's secrets:

GKE_PROJECT: Google Cloud project ID

While it is not a secret anymore, but variable.

verbanicm pushed a commit that referenced this pull request May 9, 2023
## What's Changed
* Fix docs about component installation for system-provided by
@sethvargo in
#615
* chore: update dependencies (automated) by @verbanicm in
#623
* Switch to pull non-secret values from env by @sethvargo in
#624
* Drop example workflows by @sethvargo in
#627
* Add warning about `skip_install` by @ethanmdavidson in
#630
* chore(deps): bump yaml from 2.2.1 to 2.2.2 by @dependabot in
#629
* Update README.md by @sethvargo in
#631
* Add support note by @sethvargo in
#634
* chore: update dependencies (automated) by @verbanicm in
#637

## New Contributors
* @ethanmdavidson made their first contribution in
#630

**Full Changelog**:
v1.1.0...4d18d8e
kodiakhq bot referenced this pull request in cloudquery/cloudquery Feb 28, 2024
…16953)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [google-github-actions/setup-gcloud](https://togithub.com/google-github-actions/setup-gcloud) | action | major | `v0.7.0` -> `v2.1.0` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency Dashboard for more information.

---

### Release Notes

<details>
<summary>google-github-actions/setup-gcloud (google-github-actions/setup-gcloud)</summary>

### [`v2.1.0`](https://togithub.com/google-github-actions/setup-gcloud/releases/tag/v2.1.0)

[Compare Source](https://togithub.com/google-github-actions/setup-gcloud/compare/v2.0.1...v2.1.0)

#### What's Changed

-   Update deps by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/677](https://togithub.com/google-github-actions/setup-gcloud/pull/677)
-   Release: v2.1.0 by [@&#8203;google-github-actions-bot](https://togithub.com/google-github-actions-bot) in [https://github.com/google-github-actions/setup-gcloud/pull/678](https://togithub.com/google-github-actions/setup-gcloud/pull/678)

**Full Changelog**: google-github-actions/setup-gcloud@v2...v2.1.0

### [`v2.0.1`](https://togithub.com/google-github-actions/setup-gcloud/releases/tag/v2.0.1)

[Compare Source](https://togithub.com/google-github-actions/setup-gcloud/compare/v2.0.0...v2.0.1)

#### What's Changed

-   Update README and CI to use latest version by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/665](https://togithub.com/google-github-actions/setup-gcloud/pull/665)
-   Don't warn when version is "latest" by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/669](https://togithub.com/google-github-actions/setup-gcloud/pull/669)
-   Only warn when there are no authentications by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/671](https://togithub.com/google-github-actions/setup-gcloud/pull/671)
-   Fix edge case when gcloud is not installed at all by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/672](https://togithub.com/google-github-actions/setup-gcloud/pull/672)
-   Rename test step to a more accurate name by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/673](https://togithub.com/google-github-actions/setup-gcloud/pull/673)
-   Release: v2.0.1 by [@&#8203;google-github-actions-bot](https://togithub.com/google-github-actions-bot) in [https://github.com/google-github-actions/setup-gcloud/pull/674](https://togithub.com/google-github-actions/setup-gcloud/pull/674)

**Full Changelog**: google-github-actions/setup-gcloud@v2...v2.0.1

### [`v2.0.0`](https://togithub.com/google-github-actions/setup-gcloud/releases/tag/v2.0.0)

[Compare Source](https://togithub.com/google-github-actions/setup-gcloud/compare/v1.1.1...v2.0.0)

**:warning: This version requires Node 20 or later!**

#### What's Changed

-   dependabot: only do security updates by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/643](https://togithub.com/google-github-actions/setup-gcloud/pull/643)
-   update all deps by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/644](https://togithub.com/google-github-actions/setup-gcloud/pull/644)
-   Update deps to Node 20 by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/653](https://togithub.com/google-github-actions/setup-gcloud/pull/653)
-   Upgrade setup-cloud-sdk package by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/656](https://togithub.com/google-github-actions/setup-gcloud/pull/656)
-   Add CI for release branches by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/661](https://togithub.com/google-github-actions/setup-gcloud/pull/661)
-   Update and drop unnecessary deps by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/662](https://togithub.com/google-github-actions/setup-gcloud/pull/662)
-   Release: v2.0.0 by [@&#8203;google-github-actions-bot](https://togithub.com/google-github-actions-bot) in [https://github.com/google-github-actions/setup-gcloud/pull/664](https://togithub.com/google-github-actions/setup-gcloud/pull/664)

**Full Changelog**: google-github-actions/setup-gcloud@v1...v2.0.0

### [`v1.1.1`](https://togithub.com/google-github-actions/setup-gcloud/releases/tag/v1.1.1)

[Compare Source](https://togithub.com/google-github-actions/setup-gcloud/compare/v1.1.0...v1.1.1)

#### What's Changed

-   Fix docs about component installation for system-provided by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/615](https://togithub.com/google-github-actions/setup-gcloud/pull/615)
-   chore: update dependencies (automated) by [@&#8203;verbanicm](https://togithub.com/verbanicm) in [https://github.com/google-github-actions/setup-gcloud/pull/623](https://togithub.com/google-github-actions/setup-gcloud/pull/623)
-   Switch to pull non-secret values from env by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/624](https://togithub.com/google-github-actions/setup-gcloud/pull/624)
-   Drop example workflows by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/627](https://togithub.com/google-github-actions/setup-gcloud/pull/627)
-   Add warning about `skip_install` by [@&#8203;ethanmdavidson](https://togithub.com/ethanmdavidson) in [https://github.com/google-github-actions/setup-gcloud/pull/630](https://togithub.com/google-github-actions/setup-gcloud/pull/630)
-   chore(deps): bump yaml from 2.2.1 to 2.2.2 by [@&#8203;dependabot](https://togithub.com/dependabot) in [https://github.com/google-github-actions/setup-gcloud/pull/629](https://togithub.com/google-github-actions/setup-gcloud/pull/629)
-   Update README.md by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/631](https://togithub.com/google-github-actions/setup-gcloud/pull/631)
-   Add support note by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/634](https://togithub.com/google-github-actions/setup-gcloud/pull/634)
-   chore: update dependencies (automated) by [@&#8203;verbanicm](https://togithub.com/verbanicm) in [https://github.com/google-github-actions/setup-gcloud/pull/637](https://togithub.com/google-github-actions/setup-gcloud/pull/637)
-   Release: v1.1.1 by [@&#8203;google-github-actions-bot](https://togithub.com/google-github-actions-bot) in [https://github.com/google-github-actions/setup-gcloud/pull/638](https://togithub.com/google-github-actions/setup-gcloud/pull/638)

#### New Contributors

-   [@&#8203;ethanmdavidson](https://togithub.com/ethanmdavidson) made their first contribution in [https://github.com/google-github-actions/setup-gcloud/pull/630](https://togithub.com/google-github-actions/setup-gcloud/pull/630)

**Full Changelog**: google-github-actions/setup-gcloud@v1.1.0...v1.1.1

### [`v1.1.0`](https://togithub.com/google-github-actions/setup-gcloud/releases/tag/v1.1.0)

[Compare Source](https://togithub.com/google-github-actions/setup-gcloud/compare/v1.0.1...v1.1.0)

#### What's Changed

-   Reduce duplicate in integration tests by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/591](https://togithub.com/google-github-actions/setup-gcloud/pull/591)
-   chore(deps): bump sinon from 14.0.2 to 15.0.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in [https://github.com/google-github-actions/setup-gcloud/pull/596](https://togithub.com/google-github-actions/setup-gcloud/pull/596)
-   chore(deps): bump qs and express in /example-workflows/cloud-build by [@&#8203;dependabot](https://togithub.com/dependabot) in [https://github.com/google-github-actions/setup-gcloud/pull/599](https://togithub.com/google-github-actions/setup-gcloud/pull/599)
-   Update CI and deps by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/603](https://togithub.com/google-github-actions/setup-gcloud/pull/603)
-   Note that metrics export should not be copied by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/604](https://togithub.com/google-github-actions/setup-gcloud/pull/604)
-   Add support for specifying version constraints by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/612](https://togithub.com/google-github-actions/setup-gcloud/pull/612)
-   Release: v1.1.0 by [@&#8203;google-github-actions-bot](https://togithub.com/google-github-actions-bot) in [https://github.com/google-github-actions/setup-gcloud/pull/613](https://togithub.com/google-github-actions/setup-gcloud/pull/613)

**Full Changelog**: google-github-actions/setup-gcloud@v1.0.1...v1.1.0

### [`v1.0.1`](https://togithub.com/google-github-actions/setup-gcloud/releases/tag/v1.0.1)

[Compare Source](https://togithub.com/google-github-actions/setup-gcloud/compare/v1.0.0...v1.0.1)

#### What's Changed

-   fix: cleanup integration tests by [@&#8203;verbanicm](https://togithub.com/verbanicm) in [https://github.com/google-github-actions/setup-gcloud/pull/582](https://togithub.com/google-github-actions/setup-gcloud/pull/582)
-   fix: docker integration test by [@&#8203;verbanicm](https://togithub.com/verbanicm) in [https://github.com/google-github-actions/setup-gcloud/pull/583](https://togithub.com/google-github-actions/setup-gcloud/pull/583)
-   fix: suggest v1 instead of v0 by [@&#8203;KengoTODA](https://togithub.com/KengoTODA) in [https://github.com/google-github-actions/setup-gcloud/pull/584](https://togithub.com/google-github-actions/setup-gcloud/pull/584)
-   fix: update versions in examples by [@&#8203;verbanicm](https://togithub.com/verbanicm) in [https://github.com/google-github-actions/setup-gcloud/pull/585](https://togithub.com/google-github-actions/setup-gcloud/pull/585)
-   Force authentication if GOOGLE_GHA_CREDS_PATH is set by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [https://github.com/google-github-actions/setup-gcloud/pull/587](https://togithub.com/google-github-actions/setup-gcloud/pull/587)
-   fix: update docs by [@&#8203;verbanicm](https://togithub.com/verbanicm) in [https://github.com/google-github-actions/setup-gcloud/pull/588](https://togithub.com/google-github-actions/setup-gcloud/pull/588)
-   Release: v1.0.1 by [@&#8203;google-github-actions-bot](https://togithub.com/google-github-actions-bot) in [https://github.com/google-github-actions/setup-gcloud/pull/589](https://togithub.com/google-github-actions/setup-gcloud/pull/589)

**Full Changelog**: google-github-actions/setup-gcloud@v1.0.0...v1.0.1

### [`v1.0.0`](https://togithub.com/google-github-actions/setup-gcloud/releases/tag/v1.0.0)

[Compare Source](https://togithub.com/google-github-actions/setup-gcloud/compare/v0.7.0...v1.0.0)

#### What's Changed

-   Document that WIF is supported for gsutil and bq now by [@&#8203;KengoTODA](https://togithub.com/KengoTODA) in [https://github.com/google-github-actions/setup-gcloud/pull/573](https://togithub.com/google-github-actions/setup-gcloud/pull/573)
-   feat: update for 1.0 release by [@&#8203;verbanicm](https://togithub.com/verbanicm) in [https://github.com/google-github-actions/setup-gcloud/pull/580](https://togithub.com/google-github-actions/setup-gcloud/pull/580)
-   Release: v1.0.0 by [@&#8203;google-github-actions-bot](https://togithub.com/google-github-actions-bot) in [https://github.com/google-github-actions/setup-gcloud/pull/581](https://togithub.com/google-github-actions/setup-gcloud/pull/581)

#### New Contributors

-   [@&#8203;KengoTODA](https://togithub.com/KengoTODA) made their first contribution in [https://github.com/google-github-actions/setup-gcloud/pull/573](https://togithub.com/google-github-actions/setup-gcloud/pull/573)

**Full Changelog**: google-github-actions/setup-gcloud@v0.6.2...v1.0.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on the first day of the month" (UTC), 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.

---

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

---

This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants