Repository navigation
Connect GitHub Actions to SafeDep Cloud with no API key - #138
Conversation
PMG and vet v2 in GitHub Actions can now trade the GitHub OIDC ID token
of a job for a short-lived SafeDep Cloud credential. The docs only told
users to store an API key in GitHub secrets.
- Add the how-to governance/cloud/github-actions-without-api-key: link
the GitHub App as an organization owner, check the provider, create the
org-wide rule, change the workflow, narrow the rule, move from an API
key, and fix each refusal.
- Add the concept concepts/workload-identity: how a job gets a
credential, what the credential can do, the default events, and the
security considerations of id-token: write.
- PMG in GitHub Actions: add OIDC mode to Connect to SafeDep Cloud, fix
the rule that both inputs are required, and say that a host proxy keeps
an API key.
- Authentication and Review CI Blocks: point to the OIDC mode.
- docs.json, docs-ia.md, CLAUDE.md and the docs skill list the new pages
and the new concept.
The minimum CLI and PMG versions are the placeholders {{CLI_VERSION}}
and {{PMG_VERSION}}, to replace with the release tags.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MhRi597EX9odoSDXbVBsxz
The GitHub Action page said that in server mode the proxy fetches the cloud policy 15 seconds after it starts, and that shim mode needs a pmg cloud sync step before the first install. Since pmg v0.36.0, the action runs pmg cloud sync --require-policy in every mode before its step ends, so the first install applies the policy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MhRi597EX9odoSDXbVBsxz
A readability review found that the pages left out who does each step, used terms before they defined them, and put one fact in several places. - The how-to names both people: an owner of the GitHub organization links the app, and a SafeDep Cloud Owner or Admin creates the rule. It adds the tenant domain as a prerequisite and a check step with the issued outcome. The migration comes right after the workflow change, one instruction per step. The troubleshooting table has a cause column and follows the order that a job meets each message. - The concept page adds "What a compromised step can do": the grant, the reach, and the life of a credential that a step gets for itself, which the post step does not revoke. Its labels are now headings. - Each fact has one home: the default events in the how-to, the event risk, forks and self-hosted runners in the concept, and the api-key precedence and post step on the PMG page. - The PMG page and Review CI Blocks name OIDC mode and the endpoint rule of each mode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MhRi597EX9odoSDXbVBsxz
SafeDep Report SummaryNo dependency changes detected. Nothing to scan. This report is generated by SafeDep GitHub App |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7b19b18b1a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
safedep/pmg#636 made the PMG action fail the step when SafeDep Cloud refuses the workload identity exchange. The troubleshooting section said that the job continued with the local config. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MhRi597EX9odoSDXbVBsxz
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MhRi597EX9odoSDXbVBsxz
…mands Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MhRi597EX9odoSDXbVBsxz
…to Authentication The concept page now says what a workload identity is, what SafeDep supports and where to set it up. A provider has a kind, and GitHub Actions is the only kind today. How a job gets a credential, what the credential can do, the events a rule covers, the security limits and when to keep an API key move to a Workload identity section of the Authentication page. Links to those sections follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MhRi597EX9odoSDXbVBsxz



Closes #132. Part of safedep/control-tower#1691.
What changes
governance/cloud/github-actions-without-api-key.mdx(Visibility & Governance > SafeDep Cloud). It covers:tenant-id;concepts/workload-identity.mdx(Core Concepts). A short overview:governance/cloud/authentication.mdx, with the details:package-security/pmg/github-actions.mdx:tenant-idalone now selects OIDC mode, which replaces the old "set both or neither" rule;governance/cloud/endpoint-hub/ci-package-blocks.mdxpoints to OIDC mode. The endpoint id isgh:<owner>/<repo>in both modes.docs.json,docs-ia.md(R4 list and section 7), the R4 line inCLAUDE.md, and the docs skill now list the new pages.Minimum releases
v0.12.0: the first tag withsafedep workload(Add safedep workload commands for providers, trust rules and exchanges cli#80).safedep/pmgactionv0.37.0: the first release with OIDC mode (Use GitHub Actions workload identity in the action when tenant-id has no api-key pmg#634) and the step that fails when SafeDep Cloud refuses the exchange (Fail the action step when SafeDep Cloud refuses the OIDC exchange, and retry the revoke pmg#636). Thev2action tag points at this release.Each
safedep workloadcommand and flag on the pages, and each quoted PMG message, exists at those tags. vet v2 has no version number. The page links to the vet v2 action docs.Facts checked against source, which differ from the issue
gh:<owner>/<repo>(fix(action): default the endpoint id to gh:<owner>/<repo> pmg#626), notgha/<repository>.safedep workload provider listand the exchange message about a missing provider. The troubleshooting table covers both.safedep workload rule createhas no flag forenvironment,workflow_ref,job_workflow_reforrunner_environment. The server accepts them, and the pages say so.unlinked, so the rules must be created again. Projects reattach by safedep/control-tower#1728.Checks
bunx -b mintlify broken-linksshows only the three knownessentials/failures.Not verified against source: the console's Tenant ID wording (taken from the existing docs), the GitHub screen where an owner accepts the new permission, and how an owner reruns the link flow for an existing installation.
🤖 Generated with Claude Code
https://claude.ai/code/session_01MhRi597EX9odoSDXbVBsxz