Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ ARG PLATFORM=Linux_x86_64
RUN wget https://github.com/privateerproj/privateer/releases/download/v${VERSION}/privateer_${PLATFORM}.tar.gz
RUN tar -xzf privateer_${PLATFORM}.tar.gz

FROM golang:1.24.4-alpine3.21 AS plugin
FROM golang:1.26.3-alpine3.23 AS plugin
RUN apk add --no-cache make git
WORKDIR /plugin
ARG PVTR_COMMIT=88d79df63e6140c593cf15366ed63992e1fbed63
# To run the latest version of the plugin, we need to use the latest commit of the pvtr-github-repo repository.
# Currently using the version https://github.com/revanite-io/pvtr-github-repo/commit/88d79df63e6140c593cf15366ed63992e1fbed63
RUN git clone https://github.com/revanite-io/pvtr-github-repo.git && cd pvtr-github-repo && git checkout ${PVTR_COMMIT}
RUN cd pvtr-github-repo && make binary && cp github-repo ../github-repo
ARG PVTR_COMMIT=c7bd9538d64f7eaab94a05c9b5fd05458a387b1c
# To run the latest version of the plugin, we need to use the latest commit of the pvtr-github-repo-scanner repository.
# Currently using v0.23.2: https://github.com/ossf/pvtr-github-repo-scanner/commit/c7bd9538d64f7eaab94a05c9b5fd05458a387b1c
RUN git clone https://github.com/ossf/pvtr-github-repo-scanner.git && cd pvtr-github-repo-scanner && git checkout ${PVTR_COMMIT}
RUN cd pvtr-github-repo-scanner && make binary && cp github-repo ../github-repo

FROM node:20-alpine as builder

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:

policy:
catalogs:
- OSPS_B
- osps-baseline-2026-02
applicability:
- Maturity Level 1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export async function saveOSPSBaselineInsightsToDB(
key: string,
repo: ISecurityInsightsObsoleteRepo,
): Promise<void> {
const CATALOG_ID = 'OSPS_B'
const CATALOG_ID = 'osps-baseline-2026-02'
Comment thread
cursor[bot] marked this conversation as resolved.
const redisCache = new RedisCache(`osps-baseline-insights`, svc.redis, svc.log)
const result = await redisCache.get(key)
const parsedResult: ISecurityInsightsPrivateerResult = JSON.parse(result)
Expand Down Expand Up @@ -131,6 +131,7 @@ export async function saveOSPSBaselineInsightsToDB(
qx,
repo.repoUrl,
evaluation['control-id'],
suite.id,
)
for (const assessment of evaluation.assessments) {
await addControlEvaluationAssessment(qx, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,19 @@ export async function findSuiteControlEvaluation(
qx: QueryExecutor,
repo: string,
controlId: string,
suiteId?: string,
): Promise<ISecurityInsightsEvaluations | null> {
return await qx.selectOneOrNone(
`
select *
from "securityInsightsEvaluations"
where "repo" = $(repo) and "controlId" = $(controlId)
${suiteId ? 'and "securityInsightsEvaluationSuiteId" = $(suiteId)' : ''}
`,
{
repo,
controlId,
suiteId,
},
)
}
Expand Down
Loading