Skip to content

Commit

Permalink
#IPF Rename report, update workflow and force build
Browse files Browse the repository at this point in the history
  • Loading branch information
suberti-ads committed May 21, 2024
1 parent da93e25 commit f2ad356
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/actions/build-ipf-container/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ runs:
output-format: json

# DEBUG REPORT NAME
- name: Inspect action SARIF report
shell: bash
run: cat ${{ steps.scan.outputs.json }}
# - name: Inspect action SARIF report
# shell: bash
# run: cat ${{ steps.scan.outputs.json }}

# Deactivate SARIF Report Upload
# - name: Upload Anchore scan SARIF report
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/generate-report/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ runs:
shell: bash
run: |
echo "SEVERITY;ID;PACKAGE;VERSION;LINK" > vulnerabilities.csv
cat vulnerabilities.json | jq -r '.matches[] | "\(.vulnerability.severity);\(.vulnerability.id);\(.artifact.name);\(.artifact.version);\(.vulnerability.links[0])"' >> vulnerabilities.csv
cat result.json | jq -r '.matches[] | "\(.vulnerability.severity);\(.vulnerability.id);\(.artifact.name);\(.artifact.version);\(.vulnerability.links[0])"' >> vulnerabilities.csv
echo -e '<table>\n<thead>\n<tr class="header">\n<th><p>SEVERITY</p></th>\n<th><p>ID</p></th>\n<th><p>PACKAGE</p></th>\n<th><p>VERSION</p></th>\n</tr>\n</thead>\n<tbody>' > vulnerabilities.html
cat vulnerabilities.json | jq -r '.matches[] | "<tr>;<td><p>\(.vulnerability.severity)</p></td>;<td><p><a href=\"\(.vulnerability.links[0])\">\(.vulnerability.id)</a></p></td>;<td><p>\(.artifact.name)</p></td>;<td><p>\(.artifact.version)</p></td>;</tr>"' | tr -s ';' '\n' | sed 's!><p>Negligible! style="background-color:#FFFFFF;"><p>Negligible!g' | sed 's!><p>Low! style="background-color:#FFFC9E;"><p>Low!g' | sed 's!><p>Medium! style="background-color:#FE996B;"><p>Medium!g' | sed 's!><p>High! style="background-color:#FD6864;"><p>High!g' | sed 's!><p>Critical! style="background-color:#FE0000;"><p>Critical!g' >> vulnerabilities.html
cat result.json | jq -r '.matches[] | "<tr>;<td><p>\(.vulnerability.severity)</p></td>;<td><p><a href=\"\(.vulnerability.links[0])\">\(.vulnerability.id)</a></p></td>;<td><p>\(.artifact.name)</p></td>;<td><p>\(.artifact.version)</p></td>;</tr>"' | tr -s ';' '\n' | sed 's!><p>Negligible! style="background-color:#FFFFFF;"><p>Negligible!g' | sed 's!><p>Low! style="background-color:#FFFC9E;"><p>Low!g' | sed 's!><p>Medium! style="background-color:#FE996B;"><p>Medium!g' | sed 's!><p>High! style="background-color:#FD6864;"><p>High!g' | sed 's!><p>Critical! style="background-color:#FE0000;"><p>Critical!g' >> vulnerabilities.html
echo -e '</tbody>\n</table>' >> vulnerabilities.html
- name: Convert HTLM to PDF
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-ipf-s1-l1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- '!main'
- 'release/**'
- 'develop**'
- 'BuildS1L1L2investigation'
workflow_call:
secrets:
WERUM_ARTIFACTORY_USER:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-ipf-s1-l2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- '!main'
- 'release/**'
- 'develop**'
- 'BuildS1L1L2investigation'
workflow_call:
secrets:
WERUM_ARTIFACTORY_USER:
Expand Down Expand Up @@ -72,4 +73,4 @@ jobs:

- uses: ./.github/actions/generate-report
with:
COMPONENT: ${{ env.IMAGE_NAME }}
COMPONENT: ${{ env.IMAGE_NAME }}
1 change: 0 additions & 1 deletion rs-container/docker_s1_ipf_l1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ WORKDIR /app

FROM artifactory.coprs.esa-copernicus.eu/rs-docker/rs-core-base:${BRANCH} as base


FROM artifactory.coprs.esa-copernicus.eu/cfi/processors/s1_l12:3.8.0-light

ARG VERSION
Expand Down
1 change: 1 addition & 0 deletions rs-container/docker_s1_ipf_l2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ WORKDIR /app

FROM artifactory.coprs.esa-copernicus.eu/rs-docker/rs-core-base:${BRANCH} as base


FROM artifactory.coprs.esa-copernicus.eu/cfi/processors/s1_l12:3.8.0-light

ARG VERSION
Expand Down

0 comments on commit f2ad356

Please sign in to comment.