Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 6 additions & 2 deletions .github/workflows/npmjs-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,13 @@ jobs:
run: |
yarn install --frozen-lockfile
- name: Install retry
uses: BitGo/install-github-release-binary@v2
with:
targets: EricCrosson/retry@v1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gokulhost this is installing an unpinned binary from a third-party repository directly into the job that is authorized to publish the SDK. Please install from the BitGo retry repository and make sure to pin the expected digest of the binary


- name: Run yarn audit
run: |
yarn run audit-high
run: retry --up-to 2x --every 3s -- yarn run audit-high --retry-on-network-failure

- name: Run dependency check
run: |
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ jobs:
- name: Install BitGoJS
run: sfw yarn install --with-frozen-lockfile

- name: Install retry
uses: BitGo/install-github-release-binary@v2
with:
targets: EricCrosson/retry@v1

- name: Audit Dependencies
run: yarn run improved-yarn-audit --min-severity high
run: retry --up-to 2x --every 3s -- yarn run improved-yarn-audit --min-severity high --retry-on-network-failure

- name: Set Environment Variable for Alpha
if: github.ref != 'refs/heads/master' # only publish changes if on feature branches
Expand Down
Loading