Skip to content

Commit

Permalink
⬆️ bump go version in pipelines (#210)
Browse files Browse the repository at this point in the history
* bumped go vers etc

* Trivy uploads result
  • Loading branch information
bdumpp committed Nov 14, 2023
1 parent 0b70a42 commit 2e9d6b9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,17 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: actions/setup-go@v4
with:
go-version: '>=1.21.3'

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3

- run: |
make build
make build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
4 changes: 2 additions & 2 deletions .github/workflows/tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
contents: write
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --force --tags
Expand All @@ -41,7 +41,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-go@v4
with:
go-version: '>=1.19.0'
go-version: '>=1.21.3'
- name: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
24 changes: 11 additions & 13 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
name: Trivy scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/go-build
Expand All @@ -39,9 +39,9 @@ jobs:
with:
path: ./bin/
key: ${{ runner.os }}-binaries-${{ hashFiles('**/go.sum') }}
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: '>=1.19.0'
go-version: '>=1.21.3'
- name: build
run: make docker-build
- uses: aquasecurity/trivy-action@master
Expand All @@ -51,12 +51,10 @@ jobs:
ignore-unfixed: true
severity: 'CRITICAL,HIGH,MEDIUM,LOW'
exit-code: '1'
format: 'table'
#format: 'sarif'
#output: 'trivy-results-image.sarif'

# Enable upload when repo is public
# - name: Upload Trivy scan image results to GitHub Security tab
# uses: github/codeql-action/upload-sarif@v2
# with:
# sarif_file: 'trivy-results-image.sarif'
# format: 'table'
format: 'sarif'
output: 'trivy-results-image.sarif'
- name: Upload Trivy scan image results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results-image.sarif'

0 comments on commit 2e9d6b9

Please sign in to comment.