Run an assessment
ghtier-assess checks your GitHub organization against the checklist and lists who holds Tier 0 and Tier 1 access. It runs 25 checks on your own machine with a token you create, only reads, and writes two files next to it. ghtier never sees the results.
Before you start
- The GitHub CLI (
gh),jqand Node.js 18 or newer. - An organization owner account. Most settings are only visible to owners.
- Or let an AI agent run it for you: see AI. It follows the same steps.
Choose what to assess
The GitHub parts run by default and need only the token below. Azure is optional: it needs read access in Entra ID, in Azure, or both, and is a separate step (see Azure and Entra ID). The runner's start screen offers the same choice.
Click a box to add or remove it. A box builds on the one above it, so it switches off with it.
You get
- Pass, fail or review for each checklist item, with the evidence
- A severity for each item that fails
- Who holds Tier 0 and Tier 1: owners, organization roles, installed Apps, outside collaborators, deploy keys, secrets, runners and rulesets
- The people, credentials and outsiders that can reach Tier 0, step by step
- The fixes that cut the most paths, marked on the checklist after an import
- What each job's GITHUB_TOKEN and secrets reach
- Triggers such as pull_request_target where an outsider can start a path
- Which repositories ask for OIDC tokens
- Outsider paths confirmed where zizmor reports template injection in that workflow
You miss
- Azure through OIDC: Paths stop at the OIDC token; what it unlocks in Azure is not shown. Also off: Entra ID, Azure resources.
Access you need
- the read-only token
- zizmor installed on your machine; it runs offline, with no token
Commands
node assess.mjs --org <org>
1. Create a read-only token
Use a fine-grained personal access token instead of your normal gh login. That login usually carries the T0repo scope, and on an owner account that reaches everything the owner can do. The runner never needs more than read.
Type your organization name to get a link that opens GitHub's token page with everything below filled in. GitHub does not let a link create the token, so you still check the form and click Generate.
- Resource owner: the organization you assess. The link sets it from the name you typed.
- Repository access: all repositories. The page selects it already. Leave it: choosing another option clears the repository permissions the link filled in.
- Expiration: 7 days.
- Repository permissions, each set to Read-only: Actions, Administration, Contents, Metadata.
- Organization permissions, each set to Read-only: Administration, Custom organization roles, Custom properties, Custom repository roles, Members, Secrets, Self-hosted runners, Webhooks.
- If the organization approves fine-grained tokens, approve the request as an owner.
- Keep the token in your own shell. Never paste it into a chat or a file you share.
Without the link, create it by hand at github.com/settings/personal-access-tokens/new with the settings above.
A read-only token cannot see who can bypass a ruleset (GitHub only shows it to a token with write access to the ruleset) or SSO credential authorizations. Those parts show as error or review in the results. If you need them, a classic token with admin:org, read:org and repo reads everything, but it can also write, so revoke it straight after.
2. Run it
Download these into an empty folder:
- /skills/ghtier-assess/assess.mjs as
assess.mjs: the runner - /skills/ghtier-assess/report as
report.html: the report template (optional) - /skills/ghtier-assess/azure.mjs as
azure.mjs: the Azure collector, for cloud paths (optional) - /skills/ghtier-assess/verify.mjs as
verify.mjs: checks the safety claims against the code, before you run anything - /skills/ghtier-assess/HOW-IT-WORKS.md as
HOW-IT-WORKS.md: how it works, what it reads, and every assumption (for a review) - /skills/ghtier-assess/SHA256SUMS as
SHA256SUMS: hashes, to check the files and pin the data
Check them, then run the assessment. It asks for the token and hides what you paste; set GH_TOKEN to skip the question, or add --gh-login to use your gh login instead. In a terminal it then shows what it will read and roughly how many API calls each part makes; choose with the arrow keys and space, and start with enter (--yes skips that screen):
shasum -a 256 -c --ignore-missing SHA256SUMS node verify.mjs node assess.mjs --org <org>
Large organizations: per-repository checks cover the first 200 repositories; add --max-repos N for more. Run node assess.mjs --help for every option, including --pin to refuse any data file that changed.
What it reads and writes
- Every request is
gh api --method GET. It sends no POST, PUT, PATCH or DELETE, and no GraphQL. - Check paths come from checklist.json, and only paths inside the organization you name are called.
- It also reads who you are (
/user), your role in the organization, and the access inventory: owners, organization roles, installed Apps, outside collaborators, runners and deploy keys. - It downloads the checklist and tier data from this site, and writes
ghtier-assessment-<org>.jsonandghtier-report-<org>.htmlin the folder you run it from. Nothing is sent anywhere else.
The 23 API paths the checks use
- GET /orgs/{org}
- GET /orgs/{org}/actions/permissions
- GET /orgs/{org}/actions/permissions/fork-pr-contributor-approval
- GET /orgs/{org}/actions/permissions/fork-pr-workflows-private-repos
- GET /orgs/{org}/actions/permissions/workflow
- GET /orgs/{org}/actions/runner-groups?per_page=100
- GET /orgs/{org}/actions/runners/downloads
- GET /orgs/{org}/actions/runners?per_page=100
- GET /orgs/{org}/actions/secrets?per_page=100
- GET /orgs/{org}/custom-repository-roles
- GET /orgs/{org}/installations?per_page=100
- GET /orgs/{org}/members?role=admin&per_page=100
- GET /orgs/{org}/organization-roles
- GET /orgs/{org}/properties/schema
- GET /orgs/{org}/settings/immutable-releases
- GET /repos/{org}/.github/contents/.github/SECURITY.md
- GET /repos/{org}/.github/contents/SECURITY.md
- GET /repos/{org}/.github/contents/docs/SECURITY.md
- GET /repos/{owner}/{repo}/branches/{default_branch}/protection
- GET /repos/{owner}/{repo}/codeowners/errors
- GET /repos/{owner}/{repo}/immutable-releases
- GET /repos/{owner}/{repo}/rules/branches/{default_branch}
- GET /repos/{owner}/{repo}/rulesets?includes_parents=true&per_page=100
Optional: Azure and Entra ID
A workflow that asks for an OIDC token can act as an identity in Azure, with no secret. To follow attack paths there, azure.mjs reads which identities trust GitHub and what they can do, with your Azure CLI login, and writes a file the assessment reads. It is a separate step on purpose: the GitHub runner never touches your Azure login, and your cloud team can make the file and hand it over.
| Part | Read-only role | Where | Assigned by |
|---|---|---|---|
| Entra ID | Global Reader | The directory | a Privileged Role Administrator or Global Administrator |
| Azure resources | Reader | the Tenant Root Group, or each subscription in scope | an Owner or User Access Administrator on the Tenant Root Group |
- Get Global Reader in Entra ID (skip with
--no-entra). An administrator opens Microsoft Entra admin center › Identity › Roles & admins › Global Reader › Add assignments and adds you. Microsoft's steps. - Get Reader on the Tenant Root Group (skip with
--no-azure). Its ID is the tenant ID. An administrator runs:az role assignment create --assignee <you@example.com> --role Reader \ --scope /providers/Microsoft.Management/managementGroups/<tenant-id>
To cover only some subscriptions, assign Reader on each and add--subscription <id,id>. A Global Administrator who holds neither role can elevate access, assign it, and turn elevation off again. - Run azure.mjs, then the assessment with its file:
az login --tenant <tenant-id> node azure.mjs --github-org <org> node assess.mjs --org <org> --cloud cloud-trust-<tenant-id>.json
- Remove the access when you are done. With Privileged Identity Management, make both assignments eligible instead, and activate them for the run.
- Every call is a GET to Microsoft Graph or Azure Resource Manager. It never reads secret values, blobs or keys. Whatever the login cannot read is listed in the file and the report, not guessed.
- The report shows which repository, branch or environment reaches each identity. It puts first any credential that lets many repositories, or any branch or pull request, act as an identity, ranked by what that identity holds: everyone who can push there holds it too. It also lists credentials to clean up: ones that trust a repository that was deleted, renamed or archived, or another organization. It reads both subject formats, including the one with owner and repository IDs that GitHub uses for repositories created since July 15, 2026.
How cloud access is tiered
A role is tiered by what its actions allow and where it is assigned; the highest row it matches wins. Tags and labels play no part.
| Can do | Subscription and above | Resource group or resource |
|---|---|---|
| Grant access Can give any role, including its own, on the scope. | Tier 0 | Tier 1 |
| Run code as, or take over, a managed identity Code that runs as a managed identity gets everything that identity holds, anywhere. | Tier 0 | Tier 0 Tier 1 when no managed identity there holds rights elsewhere |
| Change Azure Policy A deployIfNotExists or modify policy deploys resources with its assignment's managed identity, so changing one runs a deployment with that identity's rights. | Tier 0 | Tier 1 |
| Full control Can change every resource in the scope, including what runs as their managed identities and the access policies of their vaults. | Tier 0 | Tier 0 Tier 1 when no managed identity there holds rights elsewhere |
| Key Vault secrets or keys Reads secret values or uses keys, or can give itself that access. | Tier 0 | Tier 1 |
| Storage and other data roles Reads or changes the data in the scope. | Tier 1 | Tier 1 |
| Write on some resource types Changes some resources in the scope. | Tier 1 | Tier 2 |
| Read only Sees configuration, where secrets are sometimes left (deployment parameters, some resource properties). AzTier rates Reader Tier 1 for that reason; ghtier keeps it at Tier 2 because it cannot read Key Vault or storage data on its own. | Tier 2 | Tier 2 |
The actions that run code as a managed identity
Microsoft.Compute/virtualMachines/login/actionsign in to a VM, where its identity's token can be requestedMicrosoft.Compute/virtualMachines/loginAsAdmin/actionsign in to a VM as administratorMicrosoft.HybridCompute/machines/login/actionsign in to an Azure Arc machineMicrosoft.ContainerService/managedClusters/apps/deployments/writedeploy workloads to an AKS clusterMicrosoft.ContainerService/managedClusters/pods/exec/actionrun commands in an AKS podMicrosoft.ContainerService/managedClusters/listClusterUserCredential/actionget AKS cluster user credentialsMicrosoft.Compute/virtualMachines/runCommand/actionrun a command on a VMMicrosoft.Compute/virtualMachines/runCommands/writeadd a run command to a VMMicrosoft.Compute/virtualMachines/extensions/writeadd an extension to a VMMicrosoft.Compute/virtualMachineScaleSets/extensions/writeadd an extension to a scale setMicrosoft.Web/sites/writechange an App Service or Function appMicrosoft.Web/sites/config/writechange an app's configuration and deploymentMicrosoft.Web/sites/publishxml/Actionget an app's publishing credentialsMicrosoft.Automation/automationAccounts/runbooks/writechange an Automation runbookMicrosoft.Automation/automationAccounts/jobs/writestart an Automation jobMicrosoft.Logic/workflows/writechange a Logic AppMicrosoft.ContainerService/managedClusters/listClusterAdminCredential/actionget AKS cluster admin credentialsMicrosoft.ContainerService/managedClusters/runCommand/actionrun a command in an AKS clusterMicrosoft.ManagedIdentity/userAssignedIdentities/assign/actionattach a user-assigned identity to a resourceMicrosoft.ManagedIdentity/userAssignedIdentities/federatedIdentityCredentials/writeadd a federated credential to an identityMicrosoft.App/containerApps/writechange a container app's image or settingsMicrosoft.App/containerApps/exec/actionopen a shell in a container appMicrosoft.ContainerService/fleets/apps/deployments/writedeploy workloads through an AKS fleetMicrosoft.ContainerService/fleets/members/apps/deployments/writedeploy workloads to a fleet member clusterMicrosoft.ContainerService/fleets/members/pods/exec/actionrun commands in a pod on a fleet member cluster
- Entra ID directory roles: Tier 0 when Microsoft marks the role privileged, otherwise Tier 2.
- Microsoft Graph application permissions: Tier 0 for
RoleManagement.ReadWrite.Directory,AppRoleAssignment.ReadWrite.All,Application.ReadWrite.All,RoleAssignmentSchedule.ReadWrite.Directory,RoleEligibilitySchedule.ReadWrite.Directory,UserAuthenticationMethod.ReadWrite.All,UserAuthMethod-TAP.ReadWrite.All,UserAuthMethod-Phone.ReadWrite.All,UserAuthMethod-HardwareOATH.ReadWrite.All,UserAuthMethod-QR.ReadWrite.All,Application.ReadUpdate.All,Directory.ReadWrite.All,Group.ReadWrite.All,GroupMember.ReadWrite.All,User.ReadWrite.All,User-PasswordProfile.ReadWrite.All,SignInIdentifier.ReadWrite.All,Domain.ReadWrite.All,Organization.ReadWrite.All,Policy.ReadWrite.ConditionalAccess,Policy.ReadWrite.AuthenticationMethod,Policy.ReadWrite.PermissionGrant,PrivilegedAccess.ReadWrite.AzureAD,PrivilegedAccess.ReadWrite.AzureADGroup,PrivilegedAccess.ReadWrite.AzureResources,PrivilegedAssignmentSchedule.ReadWrite.AzureADGroup,PrivilegedEligibilitySchedule.ReadWrite.AzureADGroup,DelegatedAdminRelationship.ReadWrite.All,DeviceManagementConfiguration.ReadWrite.All,DeviceManagementScripts.ReadWrite.All,DeviceManagementRBAC.ReadWrite.All,EntitlementManagement.ReadWrite.All,SecurityIdentitiesActions.ReadWrite.All,Synchronization.ReadWrite.All; otherwise reading mail, chats, files, recovery keys or local administrator passwords is Tier 1, other reads is Tier 2, anything else is Tier 1. - Checked against AzTier (aztier.com), an attack-path-based tiering of Azure and Microsoft Graph: every week ghtier lists where it rates something lower, for a person to review.
3. Read the results
- pass, partial (a share of repositories) or fail: the check decided.
- review: it ran, but a person has to decide, for example whether each installed App is wanted.
- error: the token could not read it. The detail says which call failed.
Open the HTML report in a browser and print it to PDF if you need to share it. To work through the gaps, import the JSON file on the checklist, and compare it with a later run there to see what changed. Items without an automated check still need a person to answer them.
To build the report again from the JSON file, for example with a newer report.html, run node assess.mjs --report-from ghtier-assessment-<org>.json. It makes no GitHub calls and needs no token.
How the scores are calculated
The report opens with two scores from 0 to 100. They answer different questions, so the report keeps them in separate parts: posture is how the organization is configured, security is how far someone gets who is not an owner.
Posture score
How well the organization is configured against the checklist, weighted by how much each item protects. Each checked item counts with its value: pass is 100, partial its percentage, fail 0. Results a person has to review, or that could not be read, are left out, and the report says how many checks the score is based on. When checks holding more than a tenth of the weight could not be read, the report shows the number with "insufficient coverage" instead of a grade. Weight by severity: T0 4, T1 3, T2 2, T3 1, no severity 1.
Security score
How far someone gets who is not an owner: anyone on GitHub, a member, a developer with write, or someone holding a leaked credential. Each starting point earns its weight times the points for the highest tier it reaches. A starting point is measured only when everything it needs was read in full; one that already reaches Tier 0 in what was read counts anyway, since more data cannot make it better. A starting point that was not measured is left out and the others count for the full 100, and then the report shows the number with "insufficient coverage" instead of a grade. Points by the highest tier reached: Tier 0 0%, Tier 1 33%, Tier 2 67%, Tier 3 100%, nothing above Tier 3 100%.
| Starting point | Weight | Measured by |
|---|---|---|
| Anyone on GitHub | 35 | The highest tier anyone with a GitHub account reaches, through workflows in public repositories. Needs: repositories and who has access to them, workflow files. |
| Organization member | 25 | The highest tier every member reaches, through the base permission, internal repositories and their workflows. Needs: repositories and who has access to them, the base permission, workflow files. |
| Developer with write | 25 | For each active repository, the highest tier write access to it leads to; the points are the average over all of them. Needs: repositories and who has access to them, workflow files. |
| Leaked credential | 15 | The highest tier any credential the run found reaches: deploy keys, installed Apps, and tokens and keys authorized for SAML SSO. Needs: repositories and who has access to them, deploy keys, installed github apps, credentials authorized for saml sso. |
Grades: A from 90 (strong), B from 75 (good), C from 60 (fair), D from 40 (weak), E from 0 (poor).
Attack paths in your org
The first page of the report answers one question: who can reach Tier 0, through which chain, and which single change cuts the most of those chains. "Can reach" means it is possible with the access held today, not that anyone did it.
- Starting points are people (members and outside collaborators) and credentials (deploy keys with write access, installed Apps, and on SAML organizations the tokens and SSH keys authorized for single sign-on). Approved fine-grained tokens are not included: only a GitHub App can list them.
- Each step is one rule from the list below, seen in your organization's data. A chain stops at the first Tier 0 it reaches, at any length; the report folds chains longer than 6 steps.
- Tier 0 is what ghtier tiers as Tier 0, such as Owner or All-repository admin. Tiers come only from what each grant allows; nothing depends on labels or custom properties you would have to set.
- A step the token could not confirm is assumed, never left out, and marked with a dashed arrow and the reason. So is a step that rests on judgement instead of GitHub's documentation.
- A fix counts as removing someone's reach only when they have no other way to Tier 0.
--no-reachskips this part,--anonymizereplaces logins with labels in both files, and--full-graphalso writes everything collected to a third file. - It also reads each repository's workflow files (default branch, up to
--max-repos): which jobs ask for OIDC tokens and for which subject, which secrets they use, who can start them, and the reviewers of their environments. On public repositories that includes anyone with a GitHub account, through triggers such aspull_request_target. A file in YAML it does not read (anchors, for example) is listed as not parsed, never guessed. - If zizmor is installed it runs offline on those files, with no token, and confirms which outsider-triggered jobs run untrusted input.
--zizmor results.jsonreads your own zizmor run instead,--no-zizmorskips it and--no-workflowsskips the workflow files.
The rules behind each step
org-memberMembership and rolesEvery member of the organization gets the base permission and anything granted to all members.
org-ownerMembership and rolesOrganization owners have full administrative access to the organization. They hold Tier 0 by design; keep them few.
org-roleMembership and rolesAn organization role gives its holders, people or teams, the role's permissions across the organization.
GitHub docs · Fix: Use custom organization and repository roles instead of handing out Owner or Admin
org-role-reposMembership and rolesAn organization role with a base repository role gives that role on every repository in the organization.
base-permissionMembership and rolesThe base permission gives every member that role on every repository in the organization.
GitHub docs · Fix: Set the organization's base repository permission to None or Read, not Write or Admin
team-memberMembership and rolesTeam members get every repository role the team has.
GitHub docs · Fix: Run a quarterly access review of owners, repo admins, team membership and outside collaborators
child-teamMembership and rolesA child team inherits the repository access of its parent team.
GitHub docs · Fix: Run a quarterly access review of owners, repo admins, team membership and outside collaborators
team-repo-roleMembership and rolesA team's role on a repository applies to every member of the team.
GitHub docs · Fix: Run a quarterly access review of owners, repo admins, team membership and outside collaborators
repo-collaboratorMembership and rolesA direct or outside collaborator has their role on that repository.
GitHub docs · Fix: Run a quarterly access review of owners, repo admins, team membership and outside collaborators
write-org-secretRepository to secrets and OIDCAnyone who can push to a repository can run a workflow on their own branch that reads every organization secret the repository can use.
Strange finding · Fix: Inventory every Actions secret and its visibility/scope; the results are usually surprising
write-runner-groupRepository to secrets and OIDCAnyone who can push to a repository can run a job on every self-hosted runner its runner groups allow.
GitHub docs · Fix: Limit each self-hosted runner group to the repositories that need it
role-includesAdmin to protectionsAdmin includes everything Maintain can do, and Maintain everything Write can do. Write includes pushing code, which without workflow files only reads and pushes. Admin can also change the repository's rules, environments and deploy keys.
admin-runnersAdmin to protectionsA repository admin can register a self-hosted runner on the repository, which may pick up its jobs that run on self-hosted runners, with their secrets, whatever protects their environments.
custom-role-protectionsAdmin to protectionsA custom repository role that can push and adds Bypass branch protections or Edit repository rules merges past the branch's protection, required reviews included.
GitHub docs · Fix: Use custom organization and repository roles instead of handing out Owner or Admin
custom-role-environmentsAdmin to protectionsA custom repository role that can push and adds Manage environments can remove an environment's required reviewers and deploy to it, as an admin can.
GitHub docs · Fix: Use custom organization and repository roles instead of handing out Owner or Admin
custom-role-runnersAdmin to protectionsA custom repository role that adds Manage runners can register a self-hosted runner on the repository, which may pick up its jobs that run on self-hosted runners, with their secrets.
GitHub docs · Fix: Use custom organization and repository roles instead of handing out Owner or Admin
custom-role-actions-settingsAdmin to protectionsA custom repository role that can push and adds Manage GitHub Actions general settings can let GitHub Actions approve pull requests on the repository, then add a workflow whose token approves its own pull request.
GitHub docs · Fix: Use custom organization and repository roles instead of handing out Owner or Admin
org-role-edits-own-roleAdmin to protectionsA custom organization role with Manage custom organization roles can change custom organization roles, which may include its own, and give one a base repository role up to Admin on every repository.
GitHub docs · Fix: Use custom organization and repository roles instead of handing out Owner or Admin
org-role-runnersAdmin to protectionsAn organization role with Manage organization runners and runner groups can register a runner and open any runner group to any repository, so a runner it controls may pick up self-hosted jobs, with their secrets.
GitHub docs · Fix: Use custom organization and repository roles instead of handing out Owner or Admin
deploy-key-writeCredentials and machinesA deploy key with write access pushes to its repository, with no user, no 2FA and no expiry. Whether it can push workflow files is not confirmed yet.
GitHub docs · Fix: Service-account automation migrated from PATs to GitHub Apps
app-installationCredentials and machinesAn installed GitHub App holds its permissions on every repository it is installed on, for whoever holds its private key. Contents: write without Workflows: write pushes code but cannot change workflow files.
GitHub docs · Fix: Review every currently installed GitHub App / OAuth App and its granted scope
sso-credentialCredentials and machinesA classic token authorized for SSO uses its owner's access only as far as its scopes go: repo for the owner's repository roles and what a custom role adds to them (public_repo for public repositories), pushing code but not workflow files without workflow, and admin:org for the owner's organization roles. An SSH key pushes with Git wherever its owner can write.
GitHub docs · Fix: Service-account automation migrated from PATs to GitHub Apps
write-runs-jobWorkflows, environments and outsidersAnyone who can push can run a job that has no environment, by pushing a branch or starting it by hand, and can change what it runs. Pushing code without workflow files starts only the jobs a push triggers.
env-deployWorkflows, environments and outsidersAn environment without required reviewers lets anyone who can push deploy to it.
GitHub docs · Fix: Put production secrets in environments with required reviewers
admin-environmentsWorkflows, environments and outsidersA repository admin can change an environment's protection, required reviewers included, and deploy to it.
env-reviewerWorkflows, environments and outsidersA required reviewer of an environment can approve a deployment to it.
GitHub docs · Fix: Put production secrets in environments with required reviewers
env-gates-jobWorkflows, environments and outsidersA job that names an environment only runs once the environment's protection is satisfied, and then gets its secrets and its OIDC subject.
env-oidcWorkflows, environments and outsidersWhoever can deploy to an environment can run a job that asks for an OIDC token with the subject environment:<name>.
outsider-triggerWorkflows, environments and outsidersOn a public repository anyone can start a job triggered by pull_request_target, issue_comment or workflow_run, which runs with the repository's secrets and token; on an internal one, any member can. Whether it runs their code depends on the workflow, which zizmor checks.
GitHub docs · Fix: Audit every use of pull_request_target and remove or restructure risky ones
fork-pr-runnerWorkflows, environments and outsidersA pull request from a fork runs its own code in a pull_request job; on a self-hosted runner that code stays on the machine for the next jobs.
job-secretWorkflows, environments and outsidersA job that references a secret can read it.
job-token-writeWorkflows, environments and outsidersA job whose workflow token can write contents can push code to its repository. Those pushes start no new workflow runs, unless the token can also start one by hand (actions: write).
GitHub docs · Fix: Set the default GITHUB_TOKEN permission to read-only at the org level
write-approves-own-prWorkflows, environments and outsidersWhen GitHub Actions may approve pull requests, anyone who can push can add a workflow whose token approves their own pull request, which satisfies a rule that asks for one review.
GitHub docs · Fix: Turn off "Allow GitHub Actions to create and approve pull requests"
job-token-approveWorkflows, environments and outsidersA job whose workflow token can write pull requests can approve one when GitHub Actions may approve pull requests. Whoever starts the job, an outsider included, gets that approval.
GitHub docs · Fix: Turn off "Allow GitHub Actions to create and approve pull requests"
job-token-checksWorkflows, environments and outsidersA job whose workflow token can write commit statuses or check runs can mark a required status check as passed, unless the rule expects it from one app.
GitHub docs · Fix: Set the default GITHUB_TOKEN permission to read-only at the org level
job-token-packagesWorkflows, environments and outsidersA job whose workflow token can write packages can publish a package, and whoever installs it runs it.
GitHub docs · Fix: Set the default GITHUB_TOKEN permission to read-only at the org level
job-oidcWorkflows, environments and outsidersA job with id-token: write can ask for an OIDC token, which a cloud account can trust by its subject.
write-oidc-subjectWorkflows, environments and outsidersAnyone who can push can add a workflow on their own branch that asks for an OIDC token, with the subject of that branch or of a pull request.
job-self-hostedWorkflows, environments and outsidersA job on self-hosted runners runs on a machine in one of the runner groups its repository may use.
oidc-federated-credentialCloud through OIDCA federated identity credential lets a GitHub Actions token whose subject matches act as the Entra ID identity, with no secret.
GitHub docs · Fix: Cloud credentials migrated from static keys to OIDC federation, scoped to repo + branch
cloud-role-assignmentCloud through OIDCAn Azure role assignment gives the identity the role's actions on that scope and everything under it, including through groups.
GitHub docs · Fix: Cloud credentials migrated from static keys to OIDC federation, scoped to repo + branch
cloud-directory-roleCloud through OIDCAn Entra ID directory role gives the identity that role's permissions in the tenant.
GitHub docs · Fix: Cloud credentials migrated from static keys to OIDC federation, scoped to repo + branch
cloud-app-permissionCloud through OIDCA Microsoft Graph application permission lets the identity call Graph with that permission, without a signed-in user.
GitHub docs · Fix: Cloud credentials migrated from static keys to OIDC federation, scoped to repo + branch
cloud-keyvault-policyCloud through OIDCA Key Vault access policy lets the identity read or change the vault's secrets, keys or certificates.
GitHub docs · Fix: Cloud credentials migrated from static keys to OIDC federation, scoped to repo + branch
4. Afterwards
- Revoke the token, or let it expire.
- Treat the two files as confidential: they list your owners, Apps and security gaps.