Skip to content

Commit

Permalink
Trying matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
safaci2000 committed Oct 6, 2023
1 parent 5a8b599 commit 3bfb063
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 18 deletions.
48 changes: 33 additions & 15 deletions .github/workflows/code_scanners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,11 @@ permissions:


jobs:
govulncheck_job:
runs-on: ubuntu-latest
name: Run govulncheck
steps:
- id: govulncheck
uses: golang/govulncheck-action@v1
with:
go-version-input: "1.21.2"
go-package: ./...
security_scan:
runs-on: ubuntu-latest
env:
GO111MODULE: on
code_scanning:
strategy:
matrix:
job_name: ['security', 'vuln_check']
job_desc: ['Running Security Scan', 'Running Vulnerability Scan']
steps:
- name: Checkout Source
uses: actions/checkout@v3
Expand All @@ -42,8 +34,34 @@ jobs:
run: sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d
- name: Installing Go Tools
run: ./bin/task install_tools
- name: Running security scanning
run: ./bin/task security
- name: ${{ matrix.job_desc }}
run: ./bin/task ${{ matrix.job_name }}
govulncheck_job:
runs-on: ubuntu-latest
name: Run govulncheck
steps:
- id: govulncheck
uses: golang/govulncheck-action@v1
with:
go-version-input: "1.21.2"
go-package: ./...
# security_scan:
# runs-on: ubuntu-latest
# env:
# GO111MODULE: on
# steps:
# - name: Checkout Source
# uses: actions/checkout@v3
# - uses: actions/setup-go@v4
# with:
# go-version: "1.21.2"
# cache: false
# - name: Install Task
# run: sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d
# - name: Installing Go Tools
# run: ./bin/task install_tools
# - name: Running security scanning
# run: ./bin/task security
golangci:
name: lint
runs-on: ubuntu-latest
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ on:
- master
pull_request:

env:
GO_VERSION: 1.21.0

jobs:
test:
strategy:
matrix:
go: [ $GO_VERSION ]
go: [ 1.21.0 ]
grafana: [ 8.5.22, 9.4.3, 10.1.4 ]

env:
Expand Down

0 comments on commit 3bfb063

Please sign in to comment.