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

List minimum permissions in README.md #249

Open
HonkingGoose opened this issue Jul 5, 2023 · 0 comments
Open

List minimum permissions in README.md #249

HonkingGoose opened this issue Jul 5, 2023 · 0 comments

Comments

@HonkingGoose
Copy link

GitHub recommends users limit the permissions of any third-party actions: 1

  • Use credentials that are minimally scoped
    • Make sure the credentials being used within workflows have the least privileges required, and be mindful that any user with write access to your repository has read access to all secrets configured in your repository.
    • Actions can use the GITHUB_TOKEN by accessing it from the github.token context. For more information, see "Contexts." You should therefore make sure that the GITHUB_TOKEN is granted the minimum required permissions. It's good security practice to set the default permission for the GITHUB_TOKEN to read access only for repository contents. The permissions can then be increased, as required, for individual jobs within the workflow file. For more information, see "Automatic token authentication."

Can you please list the required permissions 2 for the devcontainers/ci in a new section of the README.md and in the relevant code examples?

Footnotes

  1. GitHub Docs, security hardening, using secrets

  2. GitHub Docs, workflow syntax, permissions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant