Skip to content

Call out how write:packages requires repo scope on PATs - #3746

Merged
jmarlena merged 5 commits into
github:mainfrom
dgholz:patch-1
Mar 31, 2021
Merged

Call out how write:packages requires repo scope on PATs#3746
jmarlena merged 5 commits into
github:mainfrom
dgholz:patch-1

Conversation

@dgholz

@dgholz dgholz commented Feb 17, 2021

Copy link
Copy Markdown
Contributor

Why:

Closes #2660

What's being changed:

The docs used to recommend removing repo scope when creating a PAT with write:packages, but it's not possible. So, clearly call that out, and when linking to the security best practices, also call out which practice to follow.

Check off the following:

@welcome

welcome Bot commented Feb 17, 2021

Copy link
Copy Markdown

Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

@dgholz

dgholz commented Feb 17, 2021

Copy link
Copy Markdown
Contributor Author

I see in the preview that the warning appears twice.

Screen Shot 2021-02-17 at 13 29 06

I don't know the best way to get it to appear only once when both reusables are included in the same page. Should I worry about the warning appearing when either reusable appears by itself? If not, which reusable should the warning appear in?

I feel like, if it appears in only one place, it should be in reusables.package_registry.authenticate_with_pat_for_container_registry and not data reusables.package_registry.authenticate-to-container-registry-steps (matching where the original warning appeared)

@janiceilene

Copy link
Copy Markdown
Contributor

@dgholz Thanks so much for opening a PR! I'll get this triaged for review ⚡

@janiceilene janiceilene added content This issue or pull request belongs to the Docs Content team packages This issue or pull request should be reviewed by the docs packages team waiting for review Issue/PR is waiting for a writer's review labels Feb 17, 2021
@jmarlena jmarlena self-assigned this Mar 3, 2021
Comment thread data/reusables/package_registry/authenticate-to-container-registry-steps.md Outdated

@jmarlena jmarlena left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Heads up, given the security related content I'm requesting some input from other stakeholders. ⚡

Comment thread data/reusables/package_registry/authenticate_with_pat_for_container_registry.md Outdated
@jmarlena

Copy link
Copy Markdown
Contributor

Note: Since this PR was opened there have been some changes to this feature. GitHub Container Registry now supports using the GITHUB_TOKEN for GitHub Actions workflows, which improves the security experience here since users don't have to rely on a PAT in a workflow.

I also noted a workaround for only selecting the write:packages scope with this url: https://github.com/settings/tokens/new?scopes=write:packages.

@jmarlena jmarlena left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@dgholz Thank you for your contribution here! 🚢 This looks ready to ship!

@jmarlena
jmarlena merged commit 842626d into github:main Mar 31, 2021
@github-actions

Copy link
Copy Markdown
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

content This issue or pull request belongs to the Docs Content team packages This issue or pull request should be reviewed by the docs packages team waiting for review Issue/PR is waiting for a writer's review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PAT creation section: possible incorrect info

3 participants