Skip to content

Commit

Permalink
MAPEX-182: add json link to downloadable artifacts (#78)
Browse files Browse the repository at this point in the history
* add json link to downloadable artifacts

* Fix OOM error in staticrypt step

Staticrypt seems to be exhausting its heap space. Setting this
environment variable should enable it to use more of the available
memory on the GitHub runner.

---------

Co-authored-by: Eva <[email protected]>
Co-authored-by: Mark E. Haase <[email protected]>
  • Loading branch information
3 people authored Feb 19, 2024
1 parent 6278cc9 commit 443f2e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
run: unzip -q output.zip
- env:
STATICRYPT_PASS: ${{ secrets.STATICRYPT_PASS }}
NODE_OPTIONS: --max-old-space-size=8192
run: >
staticrypt --remember 30 --salt c0c22fdf0cd9d2a099db9c90ca4a58bf \
--password $STATICRYPT_PASS --short \
Expand Down
7 changes: 7 additions & 0 deletions src/mappings_explorer/templates/framework_landing.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
<div class="download-artifacts col-lg-4 col-md-2 col-sm-12 ml-20">
<h6>Download Mapping Artifacts:</h6>
<div class="downloads">
<p>
<a class="link" download
href="{{url_prefix}}data/{{project_id}}/attack-{{attack_version}}/{{project_id}}-{{project_version}}/{{attack_domain.lower()}}/{{project_id}}-{{project_version}}_attack-{{attack_version}}-{{attack_domain.lower()}}_json.json">
<span><img src="{{url_prefix}}static/img/download.svg" alt="download" style="height: 20px;" /></span>
JSON
</a>
</p>
<p>
<a class="link" download
href="{{url_prefix}}data/{{project_id}}/attack-{{attack_version}}/{{project_id}}-{{project_version}}/{{attack_domain.lower()}}/{{project_id}}-{{project_version}}_attack-{{attack_version}}-{{attack_domain.lower()}}.yaml">
Expand Down

0 comments on commit 443f2e5

Please sign in to comment.