Skip to content

Commit 28f2b0d

Browse files
committed
Remove some security recipes that are dominating the total time
1 parent a907efa commit 28f2b0d

3 files changed

Lines changed: 49 additions & 4 deletions

File tree

src/main/resources/META-INF/rewrite/devcenter-starter.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,18 @@ tags:
8484
# dimensions of the security DevCenter card.
8585
- DevCenter:security
8686
recipeList:
87-
- org.openrewrite.java.security.secrets.FindSecrets
87+
# The most expensive recipe in the original DevCenter set
88+
# - org.openrewrite.java.security.secrets.FindSecrets
89+
8890
- org.openrewrite.java.security.OwaspA01
8991
- org.openrewrite.java.security.OwaspA02
9092
- org.openrewrite.java.security.OwaspA03
9193
# TODO TraitErrors thrown by VarAccessBase bug
9294
# - org.openrewrite.java.security.OwaspA05
93-
- org.openrewrite.java.security.OwaspA06
95+
96+
# Includes dependency vulnerability upgrade attempts which are expensive
97+
#- org.openrewrite.java.security.OwaspA06
98+
9499
- org.openrewrite.java.security.OwaspA08
95100
- org.openrewrite.java.security.RegularExpressionDenialOfService
96101
- org.openrewrite.java.security.ZipSlip
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
#
2+
# Copyright 2025 the original author or authors.
3+
# <p>
4+
# Licensed under the Moderne Source Available License (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
# <p>
8+
# https://docs.moderne.io/licensing/moderne-source-available-license
9+
# <p>
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
type: specs.openrewrite.org/v1beta/recipe
18+
name: io.moderne.devcenter.SecurityOriginalStarter
19+
displayName: Original DevCenter security card
20+
description: >-
21+
This is the same set of recipes as the original DevCenter security card.
22+
tags:
23+
# This tag is used by ReportAsSecurityIssues to identify sibling recipes that make up the
24+
# dimensions of the security DevCenter card.
25+
- DevCenter:security
26+
recipeList:
27+
- org.openrewrite.java.security.secrets.FindSecrets
28+
- org.openrewrite.java.security.OwaspA01
29+
- org.openrewrite.java.security.OwaspA02
30+
- org.openrewrite.java.security.OwaspA03
31+
# TODO TraitErrors thrown by VarAccessBase bug
32+
# - org.openrewrite.java.security.OwaspA05
33+
- org.openrewrite.java.security.OwaspA06
34+
- org.openrewrite.java.security.OwaspA08
35+
- org.openrewrite.java.security.RegularExpressionDenialOfService
36+
- org.openrewrite.java.security.ZipSlip
37+
- org.openrewrite.java.security.SecureTempFileCreation
38+
# Changes made by recipes above this one in the recipe list are reported as occurrences
39+
# in the Security DevCenter card.
40+
- io.moderne.devcenter.ReportAsSecurityIssues

src/test/java/io/moderne/devcenter/ReportAsSecurityIssuesTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public void defaults(RecipeSpec spec) {
3232
.scanRuntimeClasspath("org.openrewrite")
3333
.scanYamlResources()
3434
.build()
35-
// In src/main/resources/devcenter-starter.yml
36-
.activateRecipes("io.moderne.devcenter.SecurityStarter"));
35+
// In src/main/resources/original-security.yml
36+
.activateRecipes("io.moderne.devcenter.SecurityOriginalStarter"));
3737
}
3838

3939
@Test

0 commit comments

Comments
 (0)