From 1c3085dec3d2db23c4ffe831889b4f6dd2603ed0 Mon Sep 17 00:00:00 2001
From: Ivan Gonzalez <ivgonzalez@beyondtrust.com>
Date: Wed, 6 Nov 2024 09:03:54 -0500
Subject: [PATCH 1/3] feat: adding go linter

---
 .github/workflows/golint.yml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 .github/workflows/golint.yml

diff --git a/.github/workflows/golint.yml b/.github/workflows/golint.yml
new file mode 100644
index 0000000..6a2fdb6
--- /dev/null
+++ b/.github/workflows/golint.yml
@@ -0,0 +1,26 @@
+name: Go Lint
+
+on:
+  pull_request:
+    branches: [main]
+  push:
+    branches:
+      - main
+  workflow_dispatch:
+
+permissions:
+  contents: write
+
+jobs:
+  golint:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout code
+        uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
+        with:
+          fetch-depth: 0
+
+      - name: Go Lint
+        uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0
+        with:
+          version: v1.54

From 5a200b8229437c7f464b731fe59a4aa646635612 Mon Sep 17 00:00:00 2001
From: Ivan Gonzalez <ivgonzalez@beyondtrust.com>
Date: Wed, 6 Nov 2024 19:09:18 -0500
Subject: [PATCH 2/3] fix: updating go linter workflow to latest version

---
 .github/workflows/golint.yml | 13 +++++++++----
 .golangci.yml                | 10 ++++++++++
 2 files changed, 19 insertions(+), 4 deletions(-)
 create mode 100644 .golangci.yml

diff --git a/.github/workflows/golint.yml b/.github/workflows/golint.yml
index 6a2fdb6..8fc7136 100644
--- a/.github/workflows/golint.yml
+++ b/.github/workflows/golint.yml
@@ -9,18 +9,23 @@ on:
   workflow_dispatch:
 
 permissions:
-  contents: write
+  contents: read
 
 jobs:
   golint:
     runs-on: ubuntu-latest
     steps:
       - name: Checkout code
-        uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
+        uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
         with:
           fetch-depth: 0
 
+      - name: Setup Go
+        uses: actions/setup-go@v5
+        with:
+          go-version: stable
+
       - name: Go Lint
-        uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0
+        uses: golangci/golangci-lint-action@v6
         with:
-          version: v1.54
+          version: v1.60
\ No newline at end of file
diff --git a/.golangci.yml b/.golangci.yml
new file mode 100644
index 0000000..0779746
--- /dev/null
+++ b/.golangci.yml
@@ -0,0 +1,10 @@
+output:
+  formats:
+    - format: colored-line-number
+      path: stdout
+  print-issued-lines: true
+  print-linter-name: true
+  sort-results: true
+  sort-order:
+    - file
+    - severity
\ No newline at end of file

From 6fdec20d4a5d5b2b2a805f6d9a435b408ce34c0a Mon Sep 17 00:00:00 2001
From: Ivan Gonzalez <ivgonzalez@beyondtrust.com>
Date: Thu, 7 Nov 2024 09:27:18 -0500
Subject: [PATCH 3/3] fix: updating checkut version

---
 .github/workflows/golint.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/golint.yml b/.github/workflows/golint.yml
index 8fc7136..d61fb21 100644
--- a/.github/workflows/golint.yml
+++ b/.github/workflows/golint.yml
@@ -16,7 +16,7 @@ jobs:
     runs-on: ubuntu-latest
     steps:
       - name: Checkout code
-        uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
+        uses: actions/checkout@v4.2.1
         with:
           fetch-depth: 0