Skip to content
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
14 changes: 8 additions & 6 deletions .github/workflows/devguard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ on:
push:

jobs:
devguard-scanner:
uses: l3montree-dev/devguard-action/.github/workflows/full.yml@main
with:
asset-name: "l3montree-cybersecurity/projects/devguard/assets/devguard-operator"
secrets:
devguard-token: ${{ secrets.DEVGUARD_TOKEN }}
call-devsecops:
uses: l3montree-dev/devguard-action/.github/workflows/full.yml@main
with:
asset-name: "l3montree-cybersecurity/projects/devguard/assets/devguard-operator"
api-url: "https://api.main.devguard.org"
web-ui: "https://main.devguard.org"
secrets:
devguard-token: "${{ secrets.DEVGUARD_TOKEN }}"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ dist

work
/auth
devguard-operator.yaml
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

{
"name": "Launch Package",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "."
}
]
}
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM golang:1.23.4-alpine AS golang-builder
FROM golang:1.26.4-alpine3.24@sha256:f1ddd9fe14fffc091dd98cb4bfa999f32c5fc77d2f2305ea9f0e2595c5437c14 AS golang-builder

# set the working directory
WORKDIR /app

RUN apk add --no-cache curl git

RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin v0.54.1
RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin v0.71.1

COPY . .

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
run:
go run ./main.go
go run .
10 changes: 4 additions & 6 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ type Config struct {
RegistryProxies []string `yaml:"registryProxy" env:"SBOM_REGISTRY_PROXY" flag:"registryProxy"`
Verbosity string `env:"SBOM_VERBOSITY" flag:"verbosity"`

DevGuardToken string `yaml:"devGuardToken" env:"DEVGUARD_TOKEN" flag:"token"`
DevGuardApiURL string `yaml:"devGuardApiURL" env:"DEVGUARD_API_URL" flag:"apiUrl"`
DevGuardProjectName string `yaml:"devGuardProjectID" env:"DEVGUARD_PROJECT_NAME" flag:"projectName"`
DevGuardToken string `yaml:"devGuardToken" env:"DEVGUARD_TOKEN" flag:"token"`
DevGuardProjectURL string `yaml:"devGuardProjectURL" env:"DEVGUARD_PROJECT_URL" flag:"projectUrl"`
}

var (
Expand All @@ -28,9 +27,8 @@ var (
ConfigKeyFallbackPullSecret = "fallbackPullSecret"
ConfigKeyRegistryProxy = "registryProxy"

ConfigDevGuardToken = "token"
ConfigDevGuardApiURL = "apiUrl"
ConfigDevGuardProjectName = "projectName"
ConfigDevGuardToken = "token"
ConfigDevGuardProjectURL = "projectUrl"

OperatorConfig *Config
)
6 changes: 0 additions & 6 deletions daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@ func (c *CronService) runBackgroundService() {
slog.Info("Execute background-service")

for _, t := range c.processor.Targets {
err := t.Initialize()
if err != nil {
slog.Error("Target could not be initialized", "err", err)
continue
}

t.LoadImages()
}

Expand Down
Loading
Loading