diff --git a/.github/workflows/go-dep-submission.yml b/.github/workflows/go-dep-submission.yml new file mode 100644 index 00000000..c4419c32 --- /dev/null +++ b/.github/workflows/go-dep-submission.yml @@ -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 diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index fead99ea..58a64a38 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -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 diff --git a/.github/workflows/pr-dep-review.yml b/.github/workflows/pr-dep-review.yml index c037bfd6..b00a9f79 100644 --- a/.github/workflows/pr-dep-review.yml +++ b/.github/workflows/pr-dep-review.yml @@ -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]