From 6a87b4213915f4eac9138854e916321795c973e3 Mon Sep 17 00:00:00 2001 From: Michael Freeman Date: Sun, 19 Jan 2025 20:39:37 -0600 Subject: [PATCH 1/2] gitignore stuff --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 97bead8..c21ba6c 100644 --- a/.gitignore +++ b/.gitignore @@ -158,3 +158,4 @@ serviceradar-dusk_*/ serviceradar-poller_*/ serviceradar-cloud_*/ ./dist +/pkg/cloud/api/web/dist/assets/ From eb92a36bcf305c04ec9e924f798296ad1da0f549 Mon Sep 17 00:00:00 2001 From: Michael Freeman Date: Sun, 19 Jan 2025 20:43:20 -0600 Subject: [PATCH 2/2] updating golanglint --- .github/workflows/golangci-lint.yml | 7 +++++++ .golangci.yml | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index b669b90..fc2d135 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -1,5 +1,12 @@ name: lint on: [push] +permissions: + # Required: allow read access to the content for analysis. + contents: read + # Optional: allow read access to pull request. Use with `only-new-issues` option. + pull-requests: read + # Optional: allow write access to checks to allow the action to annotate code in the PR. + checks: write jobs: lint: name: lint diff --git a/.golangci.yml b/.golangci.yml index 1e3b1bf..5c94162 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,4 +1,6 @@ ---- +run: + timeout: 5m # Increase from default 1m to 5m + linters-settings: dupl: threshold: 100