From 75ad1b69ee00863c520abffba68c0bb966e11d1f Mon Sep 17 00:00:00 2001 From: Marek Karwacki Date: Tue, 19 Dec 2023 08:35:16 +0100 Subject: [PATCH] ci: use forked verified github actions --- .github/workflows/main.yml | 22 +++++++++++----------- .github/workflows/release.yml | 6 +++--- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 97761bc..c73eb57 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ jobs: contents: read deployments: write steps: - - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b + - uses: RDXWorks-actions/checkout@main - uses: radixdlt/public-iac-resuable-artifacts/fetch-secrets@main with: role_name: ${{ secrets.AWS_ROLE_NAME_SNYK_SECRET }} @@ -24,7 +24,7 @@ jobs: secret_name: ${{ secrets.AWS_SECRET_NAME_SNYK }} parse_json: true - name: Run Snyk to check for deps vulnerabilities - uses: snyk/actions/node@b98d498629f1c368650224d6d212bf7dfa89e4bf # v0.4.0 + uses: RDXWorks-actions/snyk-actions/node@master with: args: --all-projects --org=${{ env.SNYK_PROJECTS_ORG_ID }} --severity-threshold=critical @@ -36,7 +36,6 @@ jobs: contents: read deployments: write steps: - - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b - uses: radixdlt/public-iac-resuable-artifacts/fetch-secrets@main with: role_name: ${{ secrets.AWS_ROLE_NAME_SNYK_SECRET }} @@ -45,8 +44,9 @@ jobs: secret_prefix: 'SNYK' secret_name: ${{ secrets.AWS_SECRET_NAME_SNYK }} parse_json: true + - uses: RDXWorks-actions/checkout@main - name: Run Snyk to check for code vulnerabilities - uses: snyk/actions/node@b98d498629f1c368650224d6d212bf7dfa89e4bf # v0.4.0 + uses: RDXWorks-actions/snyk-actions/node@master with: args: --all-projects --org=${{ env.SNYK_PROJECTS_ORG_ID }} --severity-threshold=high command: code test @@ -59,7 +59,7 @@ jobs: contents: read deployments: write steps: - - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b + - uses: RDXWorks-actions/checkout@main - uses: radixdlt/public-iac-resuable-artifacts/fetch-secrets@main with: role_name: ${{ secrets.AWS_ROLE_NAME_SNYK_SECRET }} @@ -69,7 +69,7 @@ jobs: secret_name: ${{ secrets.AWS_SECRET_NAME_SNYK }} parse_json: true - name: Generate SBOM # check SBOM can be generated but nothing is done with it - uses: snyk/actions/node@b98d498629f1c368650224d6d212bf7dfa89e4bf # v0.4.0 + uses: RDXWorks-actions/snyk-actions/node@master with: args: --all-projects --org=${{ env.SNYK_PROJECTS_ORG_ID }} --format=cyclonedx1.4+json --json-file-output sbom.json command: sbom @@ -78,9 +78,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: RDXWorks-actions/checkout@main - name: Use Node.js - uses: actions/setup-node@v3 + uses: RDXWorks-actions/setup-node@main with: node-version: '18.x' @@ -99,7 +99,7 @@ jobs: - name: Prepare artifact run: rm -rf node_modules e2e lib sandbox - - uses: actions/upload-artifact@v3 + - uses: RDXWorks-actions/upload-artifact@main with: name: wallet-sdk.${{ github.sha }} path: . @@ -115,7 +115,7 @@ jobs: contents: read deployments: write steps: - - uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b + - uses: RDXWorks-actions/checkout@main - uses: radixdlt/public-iac-resuable-artifacts/fetch-secrets@main with: role_name: ${{ secrets.AWS_ROLE_NAME_SNYK_SECRET }} @@ -125,7 +125,7 @@ jobs: secret_name: ${{ secrets.AWS_SECRET_NAME_SNYK }} parse_json: true - name: Enable Snyk online monitoring to check for vulnerabilities - uses: snyk/actions/node@b98d498629f1c368650224d6d212bf7dfa89e4bf # v0.4.0 + uses: RDXWorks-actions/snyk-actions/node@master with: args: --all-projects --org=${{ env.SNYK_PROJECTS_ORG_ID }} --target-reference=${{ github.ref_name }} command: monitor diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 101906b..85311d6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,11 +13,11 @@ jobs: permissions: write-all steps: - name: Checkout - uses: actions/checkout@v2 + uses: RDXWorks-actions/checkout@main with: fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@v2 + uses: RDXWorks-actions/setup-node@main with: node-version: 'lts/*' - name: Install dependencies @@ -42,7 +42,7 @@ jobs: secret_name: ${{ secrets.AWS_SECRET_NAME_SNYK }} parse_json: true - name: Generate SBOM - uses: snyk/actions/node@b98d498629f1c368650224d6d212bf7dfa89e4bf # v0.4.0 + uses: RDXWorks-actions/snyk-actions/node@master with: args: --all-projects --org=${{ env.SNYK_PROJECTS_ORG_ID }} --format=cyclonedx1.4+json --json-file-output sbom.json command: sbom