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>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user