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 pushed a commit to cloudquery/cloudquery that referenced this pull request 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 [google-github-actions/setup-gcloud#677
-   Release: v2.1.0 by [@&#8203;google-github-actions-bot](https://togithub.com/google-github-actions-bot) in [google-github-actions/setup-gcloud#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 [google-github-actions/setup-gcloud#665
-   Don't warn when version is "latest" by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [google-github-actions/setup-gcloud#669
-   Only warn when there are no authentications by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [google-github-actions/setup-gcloud#671
-   Fix edge case when gcloud is not installed at all by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [google-github-actions/setup-gcloud#672
-   Rename test step to a more accurate name by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [google-github-actions/setup-gcloud#673
-   Release: v2.0.1 by [@&#8203;google-github-actions-bot](https://togithub.com/google-github-actions-bot) in [google-github-actions/setup-gcloud#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 [google-github-actions/setup-gcloud#643
-   update all deps by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [google-github-actions/setup-gcloud#644
-   Update deps to Node 20 by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [google-github-actions/setup-gcloud#653
-   Upgrade setup-cloud-sdk package by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [google-github-actions/setup-gcloud#656
-   Add CI for release branches by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [google-github-actions/setup-gcloud#661
-   Update and drop unnecessary deps by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [google-github-actions/setup-gcloud#662
-   Release: v2.0.0 by [@&#8203;google-github-actions-bot](https://togithub.com/google-github-actions-bot) in [google-github-actions/setup-gcloud#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 [google-github-actions/setup-gcloud#615
-   chore: update dependencies (automated) by [@&#8203;verbanicm](https://togithub.com/verbanicm) in [google-github-actions/setup-gcloud#623
-   Switch to pull non-secret values from env by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [google-github-actions/setup-gcloud#624
-   Drop example workflows by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [google-github-actions/setup-gcloud#627
-   Add warning about `skip_install` by [@&#8203;ethanmdavidson](https://togithub.com/ethanmdavidson) in [google-github-actions/setup-gcloud#630
-   chore(deps): bump yaml from 2.2.1 to 2.2.2 by [@&#8203;dependabot](https://togithub.com/dependabot) in [google-github-actions/setup-gcloud#629
-   Update README.md by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [google-github-actions/setup-gcloud#631
-   Add support note by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [google-github-actions/setup-gcloud#634
-   chore: update dependencies (automated) by [@&#8203;verbanicm](https://togithub.com/verbanicm) in [google-github-actions/setup-gcloud#637
-   Release: v1.1.1 by [@&#8203;google-github-actions-bot](https://togithub.com/google-github-actions-bot) in [google-github-actions/setup-gcloud#638

#### New Contributors

-   [@&#8203;ethanmdavidson](https://togithub.com/ethanmdavidson) made their first contribution in [google-github-actions/setup-gcloud#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 [google-github-actions/setup-gcloud#591
-   chore(deps): bump sinon from 14.0.2 to 15.0.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in [google-github-actions/setup-gcloud#596
-   chore(deps): bump qs and express in /example-workflows/cloud-build by [@&#8203;dependabot](https://togithub.com/dependabot) in [google-github-actions/setup-gcloud#599
-   Update CI and deps by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [google-github-actions/setup-gcloud#603
-   Note that metrics export should not be copied by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [google-github-actions/setup-gcloud#604
-   Add support for specifying version constraints by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [google-github-actions/setup-gcloud#612
-   Release: v1.1.0 by [@&#8203;google-github-actions-bot](https://togithub.com/google-github-actions-bot) in [google-github-actions/setup-gcloud#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 [google-github-actions/setup-gcloud#582
-   fix: docker integration test by [@&#8203;verbanicm](https://togithub.com/verbanicm) in [google-github-actions/setup-gcloud#583
-   fix: suggest v1 instead of v0 by [@&#8203;KengoTODA](https://togithub.com/KengoTODA) in [google-github-actions/setup-gcloud#584
-   fix: update versions in examples by [@&#8203;verbanicm](https://togithub.com/verbanicm) in [google-github-actions/setup-gcloud#585
-   Force authentication if GOOGLE_GHA_CREDS_PATH is set by [@&#8203;sethvargo](https://togithub.com/sethvargo) in [google-github-actions/setup-gcloud#587
-   fix: update docs by [@&#8203;verbanicm](https://togithub.com/verbanicm) in [google-github-actions/setup-gcloud#588
-   Release: v1.0.1 by [@&#8203;google-github-actions-bot](https://togithub.com/google-github-actions-bot) in [google-github-actions/setup-gcloud#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 [google-github-actions/setup-gcloud#573
-   feat: update for 1.0 release by [@&#8203;verbanicm](https://togithub.com/verbanicm) in [google-github-actions/setup-gcloud#580
-   Release: v1.0.0 by [@&#8203;google-github-actions-bot](https://togithub.com/google-github-actions-bot) in [google-github-actions/setup-gcloud#581

#### New Contributors

-   [@&#8203;KengoTODA](https://togithub.com/KengoTODA) made their first contribution in [google-github-actions/setup-gcloud#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.

None yet

3 participants