Skip to content

Commit f0fe79b

Browse files
committed
lint: Additional linting.
1 parent 31b5e9a commit f0fe79b

File tree

3 files changed

+33
-5
lines changed

3 files changed

+33
-5
lines changed
+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Go Dependency Submission
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
# The API requires write permission on the repository to submit dependencies
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
go-action-detection:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout Source
17+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Install Go
22+
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
23+
with:
24+
go-version: latest
25+
cache: true
26+
27+
- name: Run snapshot action
28+
uses: actions/go-dependency-submission@v1
29+
with:
30+
# Required: Define the repo path to the go.mod file used by the
31+
# build target
32+
go-mod-path: go.mod

.github/workflows/golangci-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Install Go
3434
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
3535
with:
36-
go-version: '1.21'
36+
go-version: latest
3737
cache: true
3838

3939
- name: golangci-lint

.github/workflows/pr-dep-review.yml

-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
---
2-
# This workflow uses actions that are not certified by GitHub. They are provided
3-
# by a third-party and are governed by separate terms of service, privacy
4-
# policy, and support documentation.
5-
62
name: PR Dependency Review
73
on: [pull_request]
84

0 commit comments

Comments
 (0)