Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ concurrency:

on:
schedule:
# ┌───────────── minute (0 - 59)
# │ ┌───────────── hour (0 - 23)
# │ │ ┌───────────── day of the month (1 - 31)
# │ │ │ ┌───────────── month (1 - 12)
# │ │ │ │ ┌───────────── day of the week (0 - 6) (Sunday to Saturday)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
- cron: '0 12 * * 6'
push:
branches:
Expand All @@ -14,6 +23,10 @@ on:
tags:
- 'v*'
pull_request:
# The branches below must be a subset of the branches above
branches:
- 'main'
- 'release/*'

permissions:
contents: read # to fetch code (actions/checkout)
Expand Down Expand Up @@ -44,12 +57,12 @@ jobs:
git checkout HEAD^2
-
name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
-
name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3
-
name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
2 changes: 1 addition & 1 deletion .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ jobs:
uses: actions/checkout@v4

- name: Run FOSSA scan and upload build data
uses: fossa-contrib/fossa-action@v2
uses: fossa-contrib/fossa-action@v3
with:
fossa-api-key: cac3dc8d4f2ba86142f6c0f2199a160f
11 changes: 7 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ jobs:
build:
strategy:
matrix:
go-version: [1.21.x, 1.22.x]
go-version:
- 1.21.x # oldest supported (see go.mod)
- oldstable
- stable
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 10
Expand All @@ -34,16 +37,16 @@ jobs:
make build

- name: lint
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v7
with:
version: v1.59
version: v2.0
args: --print-resources-usage --timeout=10m --verbose

- name: Test
run: |
make coverage

- name: Codecov
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
directory: ./
23 changes: 13 additions & 10 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
version: "2"
linters:
enable:
- bodyclose
- dupword # Checks for duplicate words in the source code
- gofmt
- goimports
- ineffassign
- dupword
- misspell
- revive
- staticcheck
- unconvert
- unused
- vet
disable:
- errcheck

run:
deadline: 2m
exclusions:
generated: disable
presets:
- comments
- std-error-handling
formatters:
enable:
- gofmt
- goimports
exclusions:
generated: disable
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/distribution/reference

go 1.20
go 1.21

require github.com/opencontainers/go-digest v1.0.0