Skip to content

Commit

Permalink
added spring-disabled-csrf-protection, unvalidated-url-forward
Browse files Browse the repository at this point in the history
  • Loading branch information
gmkumar2005 committed Nov 9, 2024
1 parent 39621cf commit d31a8c8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ jobs:
id: java/URL-forward-from-remote-source
- exclude:
id: java/Disabled-Spring-CSRF-protection
- exclude:
id: java/unvalidated-url-forward
- exclude:
java/spring-disabled-csrf-protection
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import java.util.HashSet;
import java.util.List;
import java.util.Set;
@SuppressWarnings("java/URL-forward-from-remote-source")
@SuppressWarnings({"java/URL-forward-from-remote-source","unvalidated-url-forward"})
public class SchemaAuthFilter extends OncePerRequestFilter {
private static final Logger logger = LoggerFactory.getLogger(SchemaAuthFilter.class);
private static final String INVITE_URL_PATTERN = "/api/v1/([A-Za-z0-9_])+/invite(/)?";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
@Configuration
@EnableWebSecurity
@ConditionalOnProperty(name = "authentication.enabled", havingValue = "true", matchIfMissing = false)
@SuppressWarnings("java/Disabled-Spring-CSRF-protection")
@SuppressWarnings({"java/Disabled-Spring-CSRF-protection","spring-disabled-csrf-protection"})
public class SecurityConfig {

@Autowired
Expand Down

0 comments on commit d31a8c8

Please sign in to comment.