Add a policy
A workload whose OIDC token has the policy’s issuer and audience, and a subject that matches, gets a key that works for one hour in the workspace, acting as you. Add one policy for each repository or workload:
Deleting a policy stops its keys at once.
Exchange a token in GitHub Actions
The job needspermissions: id-token: write. Use the policy ID shown on the page: