This guide needs the SafeDep Cloud Team or Enterprise plan. See pricing.
Prerequisites
- PMG runs in your pipelines and syncs to your tenant:
- In GitHub Actions, set the
tenant-idinput of the PMG action, withapi-keyor in OIDC mode. See Connect to SafeDep Cloud. - In other CI systems, run
pmg cloud syncat the end of the job. See Package Guard. To find these jobs later, setPMG_CLOUD_ENDPOINT_IDas shown in Other CI systems.
- In GitHub Actions, set the
Review one pipeline
1
Open the endpoint list
Sign in to app.safedep.io and select Endpoints. In GitHub Actions, each repository is one endpoint,
gh:<owner>/<repo>, with an API key and in OIDC mode. With an API key, the endpoint-id input of the PMG action changes it. In OIDC mode, nothing changes it.2
Open the endpoint
Select the endpoint, then select Package Events. Each session shows the install command and its outcome, such as Blocked or Success. Each package row shows its action, such as Blocked or Cooldown.
3
Filter the events
Use Package action or Session outcome to show only the blocks.

Review all pipelines
PMG records the CI provider for GitHub Actions jobs. This query lists the malicious package blocks, the cooldown holds and the block entry blocks in all GitHub Actions jobs:safedep query exec --sql-file.

package_action, 1 is a malicious package block, 4 is a cooldown hold and 6 is a block by a block entry.
Other CI systems
PMG does not record the CI provider for other CI systems. To group their events, give each CI endpoint an ID with a common prefix. In the job, setPMG_CLOUD_ENDPOINT_ID, for example to ci-jenkins-payments. Then filter on the prefix:
Next steps
Send Alerts from SafeDep Cloud
Send each new block to Slack or a webhook.
Find Where a Malicious Package Reached Your Organization
Find the endpoints and projects that a malicious package reached.

