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

A simple workflow to pull the repo #1

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

TapdancingRodent
Copy link
Owner

This is a test of logging of the id-token permission on GitHub Runners

@TapdancingRodent
Copy link
Owner Author

TapdancingRodent commented Apr 30, 2024

With default settings, a checkout succeeds and permissions are reported as

GITHUB_TOKEN Permissions
  Contents: read
  Metadata: read
  Packages: read

@TapdancingRodent
Copy link
Owner Author

With write permissions in workflows, a checkout succeeds and permissions are reported as

GITHUB_TOKEN Permissions
  Actions: write
  Attestations: write
  Checks: write
  Contents: write
  Deployments: write
  Discussions: write
  Issues: write
  Metadata: read
  Packages: write
  Pages: write
  PullRequests: write
  RepositoryProjects: write
  SecurityEvents: write
  Statuses: write

@TapdancingRodent
Copy link
Owner Author

With only the id-token permission set, a checkout (mysteriously) succeeds and permissions are reported as

GITHUB_TOKEN Permissions
  Metadata: read

@TapdancingRodent
Copy link
Owner Author

With contents and id-token permissions set, a checkout succeeds and permissions are reported as

GITHUB_TOKEN Permissions
  Contents: read
  Metadata: read

@TapdancingRodent
Copy link
Owner Author

Addendum: neither the Attestations or Discussions token permissions logged in the workflow runs appear to be documented

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

Successfully merging this pull request may close these issues.

None yet

1 participant