Skip to content

Commit

Permalink
frontend fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
siewer committed Aug 13, 2024
1 parent a96352b commit a7c4879
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
import java.util.function.Function;

@Component
public class JwtService {

//todo dynamic secret
public static final String SECRET = "357638792F423F4428472B4B6250655368566D597133743677397A2443264629";
public static final String SECRET = UUID.randomUUID().toString();

public String extractUsername(String token) {
return extractClaim(token, Claims::getSubject);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public class UpdateCodeRepoService {
private final CodeRepoRepository codeRepoRepository;
private final FindingRepository findingRepository;
private final CreateScanInfoService createScanInfoService;
private final FindCodeRepoService findCodeRepoService;

/**
* Updates the SCA UUID for a given {@link CodeRepo}.
Expand Down Expand Up @@ -63,6 +64,7 @@ public void updateComponents(List<Component> components, CodeRepo codeRepo) {
*/
@Transactional
public void updateCodeRepoStatus(CodeRepo codeRepo, CodeRepoBranch codeRepoBranch, boolean scaScanPerformed, String commitId) {
codeRepo = findCodeRepoService.findByRemoteId((long)codeRepo.getRemoteId());
// Update status for SECRETS
int secretsHigh = updateStatusForSource(Finding.Source.SECRETS, codeRepo, codeRepoBranch, false);

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/views/dashboard/dashboard.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ <h5 cModalTitle>Import Single repository</h5>
cFormControl
type="url"
class="form-control"
id="repoUrl"
id="repoUrl2"
formControlName="repoUrl"
placeholder="Repository URL (to project)"
required
Expand Down

0 comments on commit a7c4879

Please sign in to comment.