Skip to content

Commit 17dcc8c

Browse files
committed
fix pass secret syntax, indention
1 parent ef9a183 commit 17dcc8c

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

.github/workflows/dagger.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ jobs:
1313
env:
1414
REGISTRY_ADDRESS: "ttl.sh/ptime/test:latest"
1515
REGISTRY_USERNAME: "joe"
16-
# TODO
1716
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_TOKEN }}
1817
DT_ADDRESS: "https://deptrack-test.ocp.cloudscale.puzzle.ch/api/v1/bom"
1918
DT_PROJECT_UUID: "93394d20-7c48-4ecf-8caa-7fe63ae1a275"
20-
# TODO
2119
DT_API_KEY: ${{ secrets.DT_API_KEY }}
2220
with:
2321
# Dagger Version
@@ -33,7 +31,7 @@ jobs:
3331
# Dagger module to call. Local or Git
3432
module: .
3533
# Arguments to pass to CLI
36-
args: ci-integration --pass=true --dir=./ --registry-address=${{ env.REGISTRY_ADDRESS }} --registry-username=${{ env.REGISTRY_USERNAME }} --registry-password=env:${{ env.REGISTRY_PASSWORD }} --dt-address=${{ env.DT_ADDRESS }} --dt-project-uuid=${{ env.DT_PROJECT_UUID }} --dt-api-key=env:${{ env.DT_API_KEY }} export --path=./reports/
34+
args: ci-integration --pass=true --dir=./ --registry-address=${{ env.REGISTRY_ADDRESS }} --registry-username=${{ env.REGISTRY_USERNAME }} --registry-password=env:${{ env.REGISTRY_PASSWORD }} --dt-address=${{ env.DT_ADDRESS }} --dt-project-uuid=${{ env.DT_PROJECT_UUID }} --dt-api-key=env:DT_API_KEY export --path=./reports/
3735
- name: Unittest Report
3836
uses: dorny/[email protected]
3937
with:

ci/main.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ func (m *Ci) PublishToDeptrack(
168168
// deptrack API key
169169
apiKey *dagger.Secret,
170170
// deptrack project UUID
171-
projectUUID string,
171+
projectUUID string,
172172
) (string, error) {
173173
return dag.Container().
174174
From("curlimages/curl").
@@ -254,9 +254,9 @@ func (m *Ci) Ci(
254254
// deptrack address for publishing the SBOM https://deptrack.example.com/api/v1/bom
255255
dtAddress string,
256256
// deptrack project UUID
257-
dtProjectUUID string,
258-
// deptrack API key
259-
dtApiKey *dagger.Secret,
257+
dtProjectUUID string,
258+
// deptrack API key
259+
dtApiKey *dagger.Secret,
260260
// ignore linter failures
261261
// +optional
262262
// +default=false
@@ -277,7 +277,7 @@ func (m *Ci) Ci(
277277
}
278278

279279
return &Results{
280-
TestReports: testReports,
280+
TestReports: testReports,
281281
LintOutput: lintOutput,
282282
SecurityScan: securityScan,
283283
VulnerabilityScan: vulnerabilityScan,
@@ -300,9 +300,9 @@ func (m *Ci) CiIntegration(
300300
// deptrack address for publishing the SBOM https://deptrack.example.com/api/v1/bom
301301
dtAddress string,
302302
// deptrack project UUID
303-
dtProjectUUID string,
304-
// deptrack API key
305-
dtApiKey *dagger.Secret,
303+
dtProjectUUID string,
304+
// deptrack API key
305+
dtApiKey *dagger.Secret,
306306
// ignore linter failures
307307
// +optional
308308
// +default=false

0 commit comments

Comments
 (0)