Skip to content

Commit

Permalink
fix(secu): add details in secu panel titles (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon authored Apr 2, 2023
1 parent 57946ab commit b20a558
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/declaration-rgpd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
run: |
ls -la
cat rgpd.json
[[ $(cat rgpd.json | jq '.[0].score') -eq "4" ]] || (echo "Error: Should score 4" && exit 1)
[[ $(cat rgpd.json | jq '.[0].score') -eq "3" ]] || (echo "Error: Should score 3" && exit 1)
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ Array [
"maxScore": 4,
"mention": "Mentions légales",
"missingTrackers": Array [],
"missingWords": Array [],
"score": 4,
"missingWords": Array [
"hébergeur (ou) hébergement",
],
"score": 3,
"slug": "ml",
},
Object {
Expand Down
2 changes: 1 addition & 1 deletion report/www/src/components/Codescan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const Codescan: React.FC<CodescanProps> = ({ data, url }) => {
return (
(alerts.length > 0 && (
<Panel
title="CodeScan"
title={`CodeScan ${data.url.replace(/^https?:\/\/[^/]+\/(.*)/, "$1")}`}
url={`${data.url}/security/code-scanning`}
urlText="Alertes CodeQL"
isExternal
Expand Down
5 changes: 4 additions & 1 deletion report/www/src/components/Dependabot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ export const Dependabot: React.FC<DependabotProps> = ({ data, url }) => {
return (
(data.vulnerabilityAlerts.totalCount > 0 && (
<Panel
title="Alertes Dependabot"
title={`Alertes Dependabot ${data.url.replace(
/^https:\/\/github\.com\/(.*)/,
"$1"
)}`}
url={`${data.url}/security/dependabot`}
urlText="Alertes dependabot"
isExternal={true}
Expand Down

0 comments on commit b20a558

Please sign in to comment.