File tree Expand file tree Collapse file tree 4 files changed +93
-4
lines changed
Expand file tree Collapse file tree 4 files changed +93
-4
lines changed Original file line number Diff line number Diff line change 1+ # Copyright (c) Microsoft Corporation.
2+ # Licensed under the MIT license.
3+
4+ # To get started with Dependabot version updates, you'll need to specify which
5+ # package ecosystems to update and where the package manifests are located.
6+ # Please see the documentation for all configuration options:
7+ # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
8+
9+ version : 2
10+ updates :
11+ # Enable version updates for Go modules
12+ - package-ecosystem : " gomod"
13+ directory : " /"
14+ schedule :
15+ interval : " weekly"
16+ day : " monday"
17+ open-pull-requests-limit : 10
18+ labels :
19+ - " dependencies"
20+ - " go"
21+ commit-message :
22+ prefix : " deps"
23+ include : " scope"
24+
25+ # Enable version updates for GitHub Actions
26+ - package-ecosystem : " github-actions"
27+ directory : " /"
28+ schedule :
29+ interval : " weekly"
30+ day : " monday"
31+ open-pull-requests-limit : 5
32+ labels :
33+ - " dependencies"
34+ - " github-actions"
35+ commit-message :
36+ prefix : " ci"
Original file line number Diff line number Diff line change 99 build :
1010 runs-on : ubuntu-latest
1111 steps :
12- - uses : actions/checkout@v2
12+ - uses : actions/checkout@v4
1313 - name : Setup go
14- uses : actions/setup-go@v2
14+ uses : actions/setup-go@v5
1515 with :
16- go-version : ' 1.22 '
16+ go-version : ' 1.24 '
1717 - name : Run tests against Linux SQL
1818 run : |
1919 go version
2323 export SQLCMDPASSWORD=$(date +%s|sha256sum|base64|head -c 32)
2424 export SQLCMDUSER=sa
2525 docker run -m 2GB -e ACCEPT_EULA=1 -d --name sql2022 -p:1433:1433 -e SA_PASSWORD=$SQLCMDPASSWORD mcr.microsoft.com/mssql/server:2022-latest
26+ echo "Waiting for SQL Server to be ready..."
27+ READY=0
28+ for i in {1..60}; do
29+ if docker exec sql2022 /opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P "$SQLCMDPASSWORD" -C -Q "SELECT 1" &>/dev/null; then
30+ echo "SQL Server is ready!"
31+ READY=1
32+ break
33+ fi
34+ echo "Attempt $i: SQL Server not ready yet, waiting..."
35+ sleep 2
36+ done
37+ if [ $READY -eq 0 ]; then
38+ echo "ERROR: SQL Server failed to become ready within 2 minutes"
39+ exit 1
40+ fi
2641 cd ../..
2742 go test -v ./...
Original file line number Diff line number Diff line change 1+ # Copyright (c) Microsoft Corporation.
2+ # Licensed under the MIT license.
3+
4+ name : Security Scanning
5+
6+ on :
7+ push :
8+ branches :
9+ - main
10+ pull_request :
11+ branches :
12+ - main
13+ schedule :
14+ # Run weekly on Monday at 9:00 AM UTC
15+ - cron : ' 0 9 * * 1'
16+ workflow_dispatch :
17+
18+ permissions :
19+ contents : read
20+
21+ jobs :
22+ govulncheck :
23+ name : Go Vulnerability Check
24+ runs-on : ubuntu-latest
25+ steps :
26+ - name : Checkout code
27+ uses : actions/checkout@v4
28+
29+ - name : Setup Go
30+ uses : actions/setup-go@v5
31+ with :
32+ go-version : ' 1.24'
33+
34+ - name : Install govulncheck
35+ run : go install golang.org/x/vuln/cmd/govulncheck@latest
36+
37+ - name : Run govulncheck
38+ run : govulncheck ./...
Original file line number Diff line number Diff line change 11steps :
22 - task : GoTool@0
33 inputs :
4- version : ' 1.22.10 '
4+ version : ' 1.24.2 '
55 - task : Go@0
66 displayName : ' Go: get dependencies'
77 inputs :
You can’t perform that action at this time.
0 commit comments