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

Use consistent format for placeholders in Open ID section #34454

Merged

Conversation

hsnabszhdn
Copy link
Contributor

@hsnabszhdn hsnabszhdn commented Aug 31, 2024

Why:

GitHub's style guide uses hyphenated all caps for placeholders:

image

Closes: N/A

What's being changed (if available, include any code snippets, screenshots, or gifs):

  • <some-placeholder>/<Some Placeholder>/<somePlaceholder> change to SOME-PLACEHOLDER
  • <example-placeholder> is changed to PLACEHOLDER as they are not an "example", but a placeholder for an example, if you get what I mean! 😅
  • All <> are being removed from projects/<example-project-id>/locations/global/workloadIdentityPools/<name-of-pool>/providers/<name-of-provider> as these ones are actual examples, not placeholders
  • <project-id> placeholder is being removed from the GCP documentation as there is no reference in the YAML file to that placeholder (see the comment in the "Files changed" tab)
  • ROLE-TO-ASSUME is being added to the AWS documentation as the example in GCP uses a placeholder instead of hard-coding the example in the YAML file (see the comment/screenshot in the "Files changed" tab)

Check off the following:

  • I have reviewed my changes in staging, available via the View deployment link in this PR's timeline (this link will be available after opening the PR).

    • For content changes, you will also see an automatically generated comment with links directly to pages you've modified. The comment won't appear if your PR only edits files in the data directory.
  • For content changes, I have completed the self-review checklist.

@github-actions github-actions bot added the triage Do not begin working on this issue until triaged by the team label Aug 31, 2024
Copy link
Contributor

github-actions bot commented Aug 31, 2024

Automatically generated comment ℹ️

This comment is automatically generated and will be overwritten every time changes are committed to this branch.

The table contains an overview of files in the content directory that have been changed in this pull request. It's provided to make it easy to review your changes on the staging site. Please note that changes to the data directory will not show up in this table.


Content directory changes

You may find it useful to copy this table into the pull request summary. There you can edit it to share links to important articles or changes and to give a high-level overview of how the changes in your pull request support the overall goals of the pull request.

Source Preview Production What Changed
actions/security-for-github-actions/security-hardening-your-deployments/about-security-hardening-with-openid-connect.md fpt
ghec
ghes@ 3.14 3.13 3.12 3.11 3.10
fpt
ghec
ghes@ 3.14 3.13 3.12 3.11 3.10
actions/security-for-github-actions/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services.md fpt
ghec
ghes@ 3.14 3.13 3.12 3.11 3.10
fpt
ghec
ghes@ 3.14 3.13 3.12 3.11 3.10
actions/security-for-github-actions/security-hardening-your-deployments/configuring-openid-connect-in-google-cloud-platform.md fpt
ghec
ghes@ 3.14 3.13 3.12 3.11 3.10
fpt
ghec
ghes@ 3.14 3.13 3.12 3.11 3.10
actions/security-for-github-actions/security-hardening-your-deployments/configuring-openid-connect-in-hashicorp-vault.md fpt
ghec
ghes@ 3.14 3.13 3.12 3.11 3.10
fpt
ghec
ghes@ 3.14 3.13 3.12 3.11 3.10

fpt: Free, Pro, Team
ghec: GitHub Enterprise Cloud
ghes: GitHub Enterprise Server

* `<example-aws-region>`: Add the name of your AWS region here.
* `BUCKET-NAME`: Add the name of your S3 bucket here.
* `AWS-REGION`: Add the name of your AWS region here.
* `ROLE-TO-ASSUME`: Replace this with your AWS role. For example, `arn:aws:iam::1234567890:role/example-role`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made <role-to-assume> a placeholder ROLE-TO-ASSUME with an example, and referenced that in the YAML file similar to what's in GCP documentation:

image

@@ -59,9 +59,8 @@ The `google-github-actions/auth` action receives a JWT from the {% data variable

This example has a job called `Get_OIDC_ID_token` that uses actions to request a list of services from GCP.

* `<example-workload-identity-provider>`: Replace this with the path to your identity provider in GCP. For example, `projects/<example-project-id>/locations/global/workloadIdentityPools/<name-of-pool>/providers/<name-of-provider>`
* `<example-service-account>`: Replace this with the name of your service account in GCP.
* `<project-id>`: Replace this with the ID of your GCP project.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The entire <project-id> line is removed as there is no reference in the YAML to this.

@hsnabszhdn hsnabszhdn force-pushed the use-consistent-naming-for-placeholders branch from 44e5fa2 to d862229 Compare August 31, 2024 08:32
@hsnabszhdn hsnabszhdn changed the title Use consistent naming for placeholders in Open ID section Use consistent format for placeholders in Open ID section Aug 31, 2024
@Samymhros

This comment was marked as spam.

@nguyenalex836 nguyenalex836 added content This issue or pull request belongs to the Docs Content team actions This issue or pull request should be reviewed by the docs actions team waiting for review Issue/PR is waiting for a writer's review and removed triage Do not begin working on this issue until triaged by the team labels Sep 2, 2024
@nguyenalex836
Copy link
Contributor

@hsnabszhdn Thanks so much for opening a PR with these fixes! I'll update the branch and get this merged once tests are passing 🍏

@nguyenalex836 nguyenalex836 removed the waiting for review Issue/PR is waiting for a writer's review label Sep 2, 2024
@nguyenalex836 nguyenalex836 added this pull request to the merge queue Sep 2, 2024
Merged via the queue into github:main with commit cdf24f8 Sep 2, 2024
45 checks passed
Copy link
Contributor

github-actions bot commented Sep 2, 2024

Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our help wanted issues

@hsnabszhdn hsnabszhdn deleted the use-consistent-naming-for-placeholders branch September 6, 2024 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actions This issue or pull request should be reviewed by the docs actions team content This issue or pull request belongs to the Docs Content team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants