Skip to content

Commit

Permalink
Add codeql workflow and unify go version in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
secwall committed Apr 5, 2024
1 parent 8883ce2 commit aebe481
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 5 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CodeQL

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '30 06 * * 6'

env:
GO_VERSION: 1.22.1

jobs:
analyze:
runs-on: ubuntu-latest
permissions:
security-events: write
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: go
build-mode: manual
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Build
run: make cmd/rdsync/rdsync
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:go"
2 changes: 1 addition & 1 deletion .github/workflows/func-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- cron: '30 06 * * *'

env:
GO_VERSION: 1.22.0
GO_VERSION: 1.22.1
DOCKER_API_VERSION: 1.43

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [ master ]

env:
GO_VERSION: 1.22.0
GO_VERSION: 1.22.1

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jepsen-cluster-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- cron: '30 06 * * *'

env:
GO_VERSION: 1.22.0
GO_VERSION: 1.22.1

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/jepsen-sentinel-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- cron: '30 06 * * *'

env:
GO_VERSION: 1.22.0
GO_VERSION: 1.22.1

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches: [ master ]

env:
GO_VERSION: 1.22.0
GO_VERSION: 1.22.1

jobs:
unittest:
Expand Down

0 comments on commit aebe481

Please sign in to comment.