github.com/99designs/gqlgen@v0.17.45/.github/workflows/security.yml (about)

     1  name: Security
     2  on:
     3    push:
     4      branches:
     5        - master
     6    pull_request:
     7      types: [ opened, synchronize ]
     8  # When a new revision is pushed to a PR, cancel all in-progress CI runs for that
     9  # PR. See https://docs.github.com/en/actions/using-jobs/using-concurrency
    10  concurrency:
    11    group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
    12    cancel-in-progress: true
    13  jobs:
    14    nancy:
    15      strategy:
    16        matrix:
    17          go: ["1.21"] # nancy is a little flaky
    18      runs-on: ubuntu-latest
    19      steps:
    20        - uses: actions/checkout@v4
    21        - uses: actions/setup-go@v5
    22          with:
    23            go-version: ${{ matrix.go }}
    24        - run: go mod download && go list -json -deps all > go.list
    25        - uses: sonatype-nexus-community/nancy-github-action@main