Skip to content

Commit

Permalink
lint: Additional linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Oct 27, 2023
1 parent 31b5e9a commit f0fe79b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/go-dep-submission.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Go Dependency Submission
on:
push:
branches:
- main

# The API requires write permission on the repository to submit dependencies
permissions:
contents: write

jobs:
go-action-detection:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0

- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: latest
cache: true

- name: Run snapshot action
uses: actions/go-dependency-submission@v1
with:
# Required: Define the repo path to the go.mod file used by the
# build target
go-mod-path: go.mod
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: '1.21'
go-version: latest
cache: true

- name: golangci-lint
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/pr-dep-review.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
---
# This workflow uses actions that are not certified by GitHub. They are provided
# by a third-party and are governed by separate terms of service, privacy
# policy, and support documentation.

name: PR Dependency Review
on: [pull_request]

Expand Down

0 comments on commit f0fe79b

Please sign in to comment.