Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(fedora): support fedora and EPEL #129

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
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
4 changes: 4 additions & 0 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ jobs:
name: Rocky Linux Security Advisory
run: ./vuln-list-update -target rocky

- if: always()
name: Fedora Security Advisory
run: ./vuln-list-update -target fedora

- if: always()
name: CBL-Mariner Vulnerability Data
run: ./vuln-list-update -target mariner
Expand Down
10 changes: 7 additions & 3 deletions alma/alma_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,18 @@ func TestUpdate(t *testing.T) {

dir := t.TempDir()
ac := alma.NewConfig(alma.WithURLs(map[string]string{tt.version: ts.URL}), alma.WithDir(dir), alma.WithRetry(0))

if err := ac.Update(); tt.expectedError != nil {
err := ac.Update()
if tt.expectedError != nil {
require.Error(t, err)
assert.Contains(t, err.Error(), tt.expectedError.Error())
return
}
assert.NoError(t, err)

err := filepath.Walk(dir, func(path string, info os.FileInfo, errfp error) error {
err = filepath.Walk(dir, func(path string, info os.FileInfo, errfp error) error {
if errfp != nil {
return errfp
}
if info.IsDir() {
return nil
}
Expand Down
Loading