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
12 changes: 11 additions & 1 deletion .github/workflows/openshift-compat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,23 @@ jobs:
- name: Run OLM compatibility e2e
run: make test-compat-e2e-olm-openshift

- name: Upload test report
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
if: ${{ !cancelled() }}
with:
name: e2e-report-openshift-compat
path: "**/report/*"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] Do not upload unredacted Kubernetes secrets

This wildcard uploads the failure diagnostics produced by DumpNamespaceDiagnostics. Its resources-*.log file serializes a corev1.SecretList in full, including every Secret's .data. On OpenShift that can include service-account/image-pull credentials, so a failed test would persist live cluster credentials as a downloadable GitHub artifact. Please redact/omit Secret data in the diagnostic dump (including the Praktika archive path) before uploading these files.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DumpNamespaceDiagnostics dumps Secrets generated by the operator during the test, nothing really secret can be leaked

if-no-files-found: error
overwrite: true

- name: Test Report
uses: dorny/test-reporter@d1b5dff021aa968b288b02285a8bf47471c5928a # v3
if: ${{ !cancelled() }}
with:
name: E2E tests
badge-title: E2E tests
reporter: java-junit
path: "**/report/*"
path: "**/report/*.xml"

- name: Wipe workspace
if: always()
Expand Down
4 changes: 0 additions & 4 deletions test/testutil/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ func Run(cmd *exec.Cmd) ([]byte, error) {
dir, _ := GetProjectDir()
cmd.Dir = dir

if err := os.Chdir(cmd.Dir); err != nil {
GinkgoWriter.Printf("chdir dir: %s\n", err)
}

cmd.Env = append(os.Environ(), "GO111MODULE=on")
command := strings.Join(cmd.Args, " ")
GinkgoWriter.Printf("running: %s\n", command)
Expand Down
Loading