Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ jobs:
cache: "pnpm"

- name: Install and configure PMG
uses: safedep/pmg@46cc70db535107183c9e752bb55d1d5c5f1a9290 # v0.14.0
uses: safedep/pmg@7b13b6bfb3cdb8cde1212e7a0e8788b22bf2081e # v0.21.2
with:
server-mode: true
api-key: ${{ secrets.SAFEDEP_CLOUD_API_KEY }}
tenant-id: ${{ secrets.SAFEDEP_CLOUD_TENANT_DOMAIN }}
endpoint-id: CICD_GHA_SAFEDEP_CLI
Expand All @@ -79,6 +80,6 @@ jobs:
- name: Release preflight
run: pnpm nx run safedep-cli:release-preflight

- name: Sync PMG events
- name: Stop PMG proxy
if: always()
run: pmg cloud sync
run: pmg proxy stop --fail-on-violation
12 changes: 8 additions & 4 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ jobs:
cache: "pnpm"

- name: Install and configure PMG
uses: safedep/pmg@46cc70db535107183c9e752bb55d1d5c5f1a9290 # v0.14.0
uses: safedep/pmg@7b13b6bfb3cdb8cde1212e7a0e8788b22bf2081e # v0.21.2
with:
server-mode: true
api-key: ${{ secrets.SAFEDEP_CLOUD_API_KEY }}
tenant-id: ${{ secrets.SAFEDEP_CLOUD_TENANT_DOMAIN }}
endpoint-id: CICD_GHA_SAFEDEP_CLI
Expand Down Expand Up @@ -78,10 +79,13 @@ jobs:
VERSION: ${{ steps.version.outputs.version }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Sync PMG events
# Limitation: runs after publish, so it alerts but cannot stop a
# release. A required dep block already fails the earlier install step. The
# gap is an optional dep: pnpm skips the block and exits 0, reaching
# publish.
- name: Stop PMG proxy
if: always()
continue-on-error: true
run: pmg cloud sync
run: pmg proxy stop --fail-on-violation

test-installation:
needs: release
Expand Down
Loading