Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: TRACEFOSS-XXX removed some excluded files from kics scan. #209

Merged
merged 12 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/kics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
# Scanning directory .
path: "./tx-backend"

exclude_paths: "tx-backend/openapi/traceability-foss-backend.json,tx-backend/infrastructure/,tx-backend/src/main/resources/swagger.yml"
exclude_paths: "tx-backend/openapi/traceability-foss-backend.json"
# Fail on HIGH severity results
fail_on: high
# Disable secrets detection - we use GitGuardian
Expand Down
21 changes: 16 additions & 5 deletions tx-backend/src/main/resources/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,32 @@
#
# SPDX-License-Identifier: Apache-2.0
################################################################################
security:
- bearerAuth: []

components:
securityDefinitions:
bearerAuth:
Fixed Show fixed Hide fixed
Fixed Show fixed Hide fixed
type: http
scheme: bearer
Fixed Show fixed Hide fixed
bearerFormat: JWT
Fixed Show fixed Hide fixed
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT

security:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
security:
bearerAuth:
Fixed Show fixed Hide fixed
type: http
Fixed Show fixed Hide fixed
scheme: bearer
Fixed Show fixed Hide fixed
Fixed Show fixed Hide fixed
bearerFormat: JWT
Fixed Show fixed Hide fixed
Fixed Show fixed Hide fixed

"securityDefinitions":{"bearerAuth":{"type":"oauth2","authorizationUrl":"","flow":"clientCredentials","scopes":{"role_supervisor":"Supervisor","role_admin":"Admin","role_user":"User"}}}

swagger:
Fixed Show fixed Hide fixed
Fixed Show fixed Hide fixed
Fixed Show fixed Hide fixed
security:
- bearerAuth: [ ]
operations:
api.assets:
summary: "Returns all assets"
Expand Down