diff --git a/.github/workflows/dependency-submission.yml b/.github/workflows/dependency-submission.yml new file mode 100644 index 0000000..20a0095 --- /dev/null +++ b/.github/workflows/dependency-submission.yml @@ -0,0 +1,32 @@ +name: Dependency Submission + +on: + push: + branches: [main] + paths: + - go.mod + - go.sum + - vendor/** + - .github/workflows/dependency-submission.yml + workflow_dispatch: + +permissions: + contents: write + +concurrency: + group: dependency-submission-${{ github.ref }} + cancel-in-progress: true + +jobs: + submit: + name: Submit Go dependency graph + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 + - uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 + with: + go-version: 1.26.5 + cache: true + - uses: actions/go-dependency-submission@f35d5c9af13ce9cc32f7930b171e315e878f6921 # v2.0.3 + with: + go-mod-path: go.mod