schubergphilis / mcvs-golang-action

Mission Critical Vulnerability Scanner (MCVS) Golang Action. Create Golang code without high and critical vulnerabilities.
MIT License
0 stars 1 forks source link

Run steps in parallel to speed up action. #55

Closed sbp-bvanb closed 5 days ago

sbp-bvanb commented 3 months ago

Use a matrix.

---
name: Golang
"on":
  # required by gomod-go-version-updater to trigger this action once pr has
  # been reviewed
  pull_request_review:
    types: [submitted]
  push:
permissions:
  contents: read
  packages: read
env:
  SOME_GLOBAL_VAR: 42
jobs:
  mcvs-golang-action:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v4.2.1
      - uses: schubergphilis/mcvs-golang-action@v0.8.5
        with:
          code_coverage_expected: ${{ env.SOME_GLOBAL_VAR }}
          golang-unit-tests-exclusions: |-
            \(cmd\/mcvs-scanner\|cmd\/mcvs-scanner-cli\|deprecated\|docs\/swagger\|mocks\)
          golangci-lint-version: v1.61.0
          token: ${{ secrets.GITHUB_TOKEN }}
  mcvs-golang-action2:
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v4.2.1
      - uses: schubergphilis/mcvs-golang-action@v0.8.5
        with:
          code_coverage_expected: ${{ env.SOME_GLOBAL_VAR }}
          golang-unit-tests-exclusions: |-
            \(cmd\/mcvs-scanner\|cmd\/mcvs-scanner-cli\|deprecated\|docs\/swagger\|mocks\)
          golangci-lint-version: v1.61.0
          token: ${{ secrets.GITHUB_TOKEN }}