File tree Expand file tree Collapse file tree 2 files changed +27
-20
lines changed Expand file tree Collapse file tree 2 files changed +27
-20
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import Collapsible from "./Collapsable";
8
8
import Loading from "./Loading" ;
9
9
10
10
import { ScoreElement } from "../types" ;
11
+ import { GITHUB } from "../constants/platforms" ;
11
12
12
13
import "../styles/ProjectDetails.css" ;
13
14
@@ -61,26 +62,31 @@ function ProjectDetails() {
61
62
{ `(${ data . repo . commit . substring ( 0 , 8 ) } )` }
62
63
</ a >
63
64
</ p >
64
- < p data-testid = "deps-dev" >
65
- Additional info at{ " " }
66
- < a
67
- href = { `https://deps.dev/project/github/${ org } %2F${ repo } ` }
68
- target = "_blank"
69
- rel = "noreferrer"
70
- >
71
- deps.dev
72
- </ a >
73
- </ p >
74
- < p data-testid = "step-security" >
75
- Improve your scoring with{ " " }
76
- < a
77
- href = { `https://app.stepsecurity.io/securerepo?repo=${ org } /${ repo } ` }
78
- target = "_blank"
79
- rel = "noreferrer"
80
- >
81
- StepSecurity
82
- </ a >
83
- </ p >
65
+ { platform === GITHUB && (
66
+ < >
67
+ < p data-testid = "deps-dev" >
68
+ Additional info at{ " " }
69
+ < a
70
+ href = { `https://deps.dev/project/github/${ org } %2F${ repo } ` }
71
+ target = "_blank"
72
+ rel = "noreferrer"
73
+ >
74
+ deps.dev
75
+ </ a >
76
+ </ p >
77
+ < p data-testid = "step-security" >
78
+ Improve your scoring with{ " " }
79
+ < a
80
+ href = { `https://app.stepsecurity.io/securerepo?repo=${ org } /${ repo } ` }
81
+ target = "_blank"
82
+ rel = "noreferrer"
83
+ >
84
+ StepSecurity
85
+ </ a >
86
+ </ p >
87
+ </ >
88
+ ) }
89
+
84
90
< hr />
85
91
{ data . checks . map ( ( element : ScoreElement ) => (
86
92
< >
Original file line number Diff line number Diff line change
1
+ export const GITHUB = 'github.com'
You can’t perform that action at this time.
0 commit comments