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
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ updates:
groups:
actions:
patterns:
- "*"
- "*"
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
run: |
make lint
make test
make build
make build
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
uses: github/codeql-action/autobuild@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.8

- name: Analyze
uses: github/codeql-action/analyze@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.8
uses: github/codeql-action/analyze@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.8
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
- name: Review Dependencies
uses: actions/dependency-review-action@da24556b548a50705dd671f47852072ea4c105d9 # v4.7.1
with:
fail-on-severity: critical
fail-on-severity: critical
7 changes: 4 additions & 3 deletions cmd/agent/executeCheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ package main
import (
"context"
"fmt"
"gitmdm/internal/analyzer"
"gitmdm/internal/config"
"gitmdm/internal/gitmdm"
"log"
"os"
"os/exec"
"strings"
"time"

"github.com/codeGROOVE-dev/gitMDM/internal/analyzer"
"github.com/codeGROOVE-dev/gitMDM/internal/config"
"github.com/codeGROOVE-dev/gitMDM/internal/gitmdm"
)

// executeCheck executes a single check rule (command or file) and returns the output.
Expand Down
3 changes: 2 additions & 1 deletion cmd/agent/executeCommand.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ import (
"context"
"errors"
"fmt"
"gitmdm/internal/gitmdm"
"log"
"os"
"os/exec"
"runtime"
"strings"
"time"

"github.com/codeGROOVE-dev/gitMDM/internal/gitmdm"
)

// containsShellOperators checks if a command contains shell operators that indicate
Expand Down
7 changes: 4 additions & 3 deletions cmd/agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ import (
"errors"
"flag"
"fmt"
"gitmdm/internal/analyzer"
"gitmdm/internal/config"
"gitmdm/internal/gitmdm"
"io"
"log"
"math"
Expand All @@ -31,6 +28,10 @@ import (
"syscall"
"time"

"github.com/codeGROOVE-dev/gitMDM/internal/analyzer"
"github.com/codeGROOVE-dev/gitMDM/internal/config"
"github.com/codeGROOVE-dev/gitMDM/internal/gitmdm"

"github.com/codeGROOVE-dev/retry"
"gopkg.in/yaml.v3"
)
Expand Down
7 changes: 4 additions & 3 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ import (
"encoding/json"
"flag"
"fmt"
"gitmdm/internal/gitmdm"
"gitmdm/internal/gitstore"
"gitmdm/internal/viewmodels"
"html/template"
"io/fs"
"log"
Expand All @@ -27,6 +24,10 @@ import (
"syscall"
"time"

"github.com/codeGROOVE-dev/gitMDM/internal/gitmdm"
"github.com/codeGROOVE-dev/gitMDM/internal/gitstore"
"github.com/codeGROOVE-dev/gitMDM/internal/viewmodels"

"github.com/codeGROOVE-dev/retry"
)

Expand Down
5 changes: 3 additions & 2 deletions internal/analyzer/analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package analyzer

import (
"fmt"
"gitmdm/internal/config"
"gitmdm/internal/gitmdm"
"log"
"os"
"regexp"
"strings"

"github.com/codeGROOVE-dev/gitMDM/internal/config"
"github.com/codeGROOVE-dev/gitMDM/internal/gitmdm"
)

var debug = os.Getenv("DEBUG") == "true"
Expand Down
3 changes: 2 additions & 1 deletion internal/config/types_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package config_test

import (
"gitmdm/internal/config"
"os"
"testing"

"github.com/codeGROOVE-dev/gitMDM/internal/config"

"gopkg.in/yaml.v3"
)

Expand Down
3 changes: 2 additions & 1 deletion internal/gitstore/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ import (
"encoding/json"
"errors"
"fmt"
"gitmdm/internal/gitmdm"
"log"
"os"
"path/filepath"
"strings"
"sync"
"time"

"github.com/codeGROOVE-dev/gitMDM/internal/gitmdm"

"github.com/codeGROOVE-dev/retry"
"github.com/go-git/go-git/v5"
"github.com/go-git/go-git/v5/plumbing/object"
Expand Down
3 changes: 2 additions & 1 deletion internal/gitstore/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package gitstore
import (
"context"
"fmt"
"gitmdm/internal/gitmdm"
"os"
"os/exec"
"path/filepath"
"strings"
"testing"
"time"

"github.com/codeGROOVE-dev/gitMDM/internal/gitmdm"
)

func TestSanitizeID(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion internal/viewmodels/viewmodels.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
package viewmodels

import (
"gitmdm/internal/gitmdm"
"regexp"
"sort"
"strconv"
"strings"
"time"

"github.com/codeGROOVE-dev/gitMDM/internal/gitmdm"
)

const (
Expand Down