From 88701d4f643651e570d9c5e8c519f87c2752d563 Mon Sep 17 00:00:00 2001 From: Willy Guggenheim <10598011+willyguggenheim@users.noreply.github.com> Date: Sat, 8 Oct 2022 03:58:17 -0700 Subject: [PATCH] To Solve Snyk Action JavaScript OutOfMemory https://support.snyk.io/hc/en-us/articles/360002046418-JavaScript-heap-out-of-memory max ram heap sizing based on 7gb https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners Signed-off-by: Willy Guggenheim <10598011+willyguggenheim@users.noreply.github.com> --- .github/workflows/sync_snyk-monitor.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/sync_snyk-monitor.yml b/.github/workflows/sync_snyk-monitor.yml index d6adca927e..87dec287d7 100644 --- a/.github/workflows/sync_snyk-monitor.yml +++ b/.github/workflows/sync_snyk-monitor.yml @@ -30,6 +30,7 @@ jobs: --remote-repo-url=https://github.com/backstage/backstage env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} + NODE_OPTIONS: --max-old-space-size=4096 # Above we run the `monitor` command, this runs the `test` command which is # the one that generates the SARIF report that we can upload to GitHub. @@ -44,6 +45,7 @@ jobs: --sarif-file-output=snyk.sarif env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} + NODE_OPTIONS: --max-old-space-size=4096 - name: Upload Snyk report uses: github/codeql-action/upload-sarif@v2 with: