Skip to content

Commit 896fd57

Browse files
Merge branch 'main' into auto-branch-find
2 parents 3f3e9ee + 2b2f112 commit 896fd57

21 files changed

+1217
-464
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @ossf/scorecard-maintainers

.github/dependabot.yml

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,27 @@ updates:
77
interval: daily
88
commit-message:
99
prefix: ":seedling:"
10-
reviewers:
11-
- "ossf/scorecard-maintainers"
1210
open-pull-requests-limit: 10
1311
groups:
12+
gomod:
13+
patterns:
14+
- "*"
15+
exclude-patterns:
16+
- "github.com/go-openapi/*"
17+
- "golang.org/x/*"
1418
go-openapi:
1519
patterns:
1620
- "github.com/go-openapi/*"
21+
golang-x:
22+
patterns:
23+
- "golang.org/x/*"
1724
# For the website code in scorecards-site.
1825
- package-ecosystem: npm
19-
directory: '/'
26+
directory: '/scorecards-site'
2027
schedule:
2128
interval: daily
2229
time: '00:00'
2330
open-pull-requests-limit: 10
24-
reviewers:
25-
- "ossf/scorecard-maintainers"
2631
commit-message:
2732
prefix: fix
2833
prefix-development: chore
@@ -34,19 +39,26 @@ updates:
3439
interval: "weekly"
3540
commit-message:
3641
prefix: ":seedling:"
37-
reviewers:
38-
- "ossf/scorecard-maintainers"
3942
groups:
4043
github-actions:
4144
patterns:
4245
- "*"
46+
exclude-patterns:
47+
- "actions/*"
48+
- "github/*"
49+
- "golangci/*"
50+
github-owned:
51+
patterns:
52+
- "actions/*"
53+
- "github/*"
54+
golangci:
55+
patterns:
56+
- "golangci/*"
4357
# Dockerfiles
4458
- package-ecosystem: docker
4559
directory: "/"
4660
schedule:
4761
interval: "weekly"
4862
commit-message:
4963
prefix: ":seedling:"
50-
reviewers:
51-
- "ossf/scorecard-maintainers"
5264
open-pull-requests-limit: 10

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ jobs:
3131

3232
steps:
3333
- name: Checkout repository
34-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
34+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3535

3636
# Initializes the CodeQL tools for scanning.
3737
- name: Initialize CodeQL
38-
uses: github/codeql-action/init@883d8588e56d1753a8a58c1c86e88976f0c23449
38+
uses: github/codeql-action/init@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
3939
with:
4040
languages: ${{ matrix.language }}
4141
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -46,7 +46,7 @@ jobs:
4646
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
4747
# If this step fails, then you should remove it and run the build manually (see below)
4848
- name: Autobuild
49-
uses: github/codeql-action/autobuild@883d8588e56d1753a8a58c1c86e88976f0c23449
49+
uses: github/codeql-action/autobuild@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
5050

5151
# ℹ️ Command-line programs to run using the OS shell.
5252
# 📚 https://git.io/JvXDl
@@ -60,4 +60,4 @@ jobs:
6060
# make release
6161

6262
- name: Perform CodeQL Analysis
63-
uses: github/codeql-action/analyze@883d8588e56d1753a8a58c1c86e88976f0c23449
63+
uses: github/codeql-action/analyze@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8

.github/workflows/depsreview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: 'Checkout Repository'
25-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
25+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2626
- name: 'Dependency Review'
27-
uses: actions/dependency-review-action@5a2ce3f5b92ee19cbb1541a4984c76d921601d7c
27+
uses: actions/dependency-review-action@40c09b7dc99638e5ddb0bfd91c1673effc064d8a

.github/workflows/main.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ on:
2727

2828
env:
2929
PROTOC_VERSION: 3.17.3
30-
GO_VERSION: 1.23
30+
GO_VERSION: 1.24
31+
GOLANGCI_LINT_VERSION: v1.64.8
3132

3233
jobs:
3334
build-scorecard-webapp:
@@ -37,17 +38,18 @@ jobs:
3738
contents: read
3839
steps:
3940
- name: Clone the code
40-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
41+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
4142
with:
4243
fetch-depth: 0
4344
- name: Setup Go
44-
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
45+
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
4546
with:
4647
go-version: ${{ env.GO_VERSION }}
4748
- name: Run linter
48-
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
49+
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
4950
with:
5051
args: --config=.golangci.yml
52+
version: ${{ env.GOLANGCI_LINT_VERSION }}
5153
- name: Check license headers
5254
run: |
5355
go env -w GOFLAGS=-mod=mod

.github/workflows/scorecards-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
id-token: write
2121
steps:
2222
- name: "Checkout code"
23-
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v2.4.0
23+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2424
with:
2525
persist-credentials: false
2626

2727
- name: "Run analysis"
28-
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.0.3
28+
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.0.3
2929
with:
3030
results_file: results.sarif
3131
results_format: sarif
@@ -48,6 +48,6 @@ jobs:
4848

4949
# Upload the results to GitHub's code scanning dashboard.
5050
- name: "Upload to code-scanning"
51-
uses: github/codeql-action/upload-sarif@883d8588e56d1753a8a58c1c86e88976f0c23449 # v1.0.26
51+
uses: github/codeql-action/upload-sarif@f443b600d91635bebf5b0d9ebc620189c0d6fba5 # v4.30.8
5252
with:
5353
sarif_file: results.sarif

.golangci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
run:
33
concurrency: 6
4-
deadline: 5m
4+
timeout: 5m
55
issues:
66
include:
77
# revive `package-comments` and `exported` rules.
@@ -18,15 +18,13 @@ issues:
1818
# Default: 3
1919
max-same-issues: 0
2020
new-from-rev: ""
21-
skip-files:
22-
- cron/data/request.pb.go # autogenerated
2321
linters:
2422
disable-all: true
2523
enable:
2624
- asciicheck
25+
- copyloopvar
2726
- dogsled
2827
- exhaustive
29-
- exportloopref
3028
- gci
3129
- gochecknoinits
3230
- goconst

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM golang:1.23.1@sha256:2fe82a3f3e006b4f2a316c6a21f62b66e1330ae211d039bb8d1128e12ed57bf1 AS builder
15+
FROM golang:1.25.2@sha256:1c91b4f4391774a73d6489576878ad3ff3161ebc8c78466ec26e83474855bfcf AS builder
1616
ENV APP_ROOT=/opt/app-root
1717
ENV GOPATH=$APP_ROOT
1818

@@ -25,7 +25,7 @@ ARG TARGETARCH
2525
RUN CGO_ENABLED=0 make scorecard-webapp
2626

2727
# Multi-Stage production build
28-
FROM golang:1.23.1@sha256:2fe82a3f3e006b4f2a316c6a21f62b66e1330ae211d039bb8d1128e12ed57bf1 as deploy
28+
FROM golang:1.25.2@sha256:1c91b4f4391774a73d6489576878ad3ff3161ebc8c78466ec26e83474855bfcf as deploy
2929
# Retrieve the binary from the previous stage
3030
COPY --from=builder /opt/app-root/src/scorecard-webapp /usr/local/bin/scorecard-webapp
3131

app/server/badge.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929

3030
const (
3131
shieldsURL = "https://img.shields.io/ossf-scorecard"
32-
badgeLabel = "openssf scorecard"
32+
badgeLabel = "openssf+scorecard"
3333
defaultStyle = "flat"
3434
)
3535

app/server/get_results_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ func TestSanitizePath(t *testing.T) {
7171
},
7272
}
7373
for _, tt := range testcases {
74-
tt := tt
7574
t.Run(tt.name, func(t *testing.T) {
7675
t.Parallel()
7776
gotPath, gotErr := sanitizeInputs(tt.host, tt.orgName, tt.repoName, tt.commit)

0 commit comments

Comments
 (0)