1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-21 23:20:10 +01:00

upgrade .github/workflows and documentation

* update all .github/workflows/ to use the latest version of
    actions and the go versions accordingly.
    (Only some github actions use a floating tag for the major version.)
  * reduce places where the go versions are hardcoded:
      * refEr to docs/Development.md from README.md
      * use `go.mod` from itest.yml.
This commit is contained in:
Bernhard Reiter 2025-10-23 12:42:36 +02:00
parent f046ade489
commit fc012fa820
No known key found for this signature in database
GPG key ID: 2B7BA3BF9BC3A554
7 changed files with 22 additions and 18 deletions

View file

@ -13,8 +13,8 @@ jobs:
auto-update-readme: auto-update-readme:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v5
- name: Markdown autodocs - name: Markdown autodocs
uses: dineshsonachalam/markdown-autodocs@v1.0.4 uses: dineshsonachalam/markdown-autodocs@v1.0.7
with: with:
output_file_paths: '[./README.md, ./docs/*.md]' output_file_paths: '[./README.md, ./docs/*.md]'

View file

@ -12,10 +12,10 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@v5
with: with:
go-version: 'oldstable' go-version: 'oldstable'

View file

@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v6
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@v5
with: with:
go-version: "stable" go-version: "stable"
@ -27,12 +27,12 @@ jobs:
run: go vet ./... run: go vet ./...
- name: gofmt - name: gofmt
uses: Jerome1337/gofmt-action@v1.0.4 uses: Jerome1337/gofmt-action@v1.0.5
with: with:
gofmt-flags: "-l -d" gofmt-flags: "-l -d"
- name: Revive Action - name: Revive Action
uses: morphy2k/revive-action@v2.7.4 uses: morphy2k/revive-action@v2
- name: Tests - name: Tests
run: go test -v ./... run: go test -v ./...
@ -46,17 +46,17 @@ jobs:
pull-requests: write # Modver needs to write comments/status on PRs pull-requests: write # Modver needs to write comments/status on PRs
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v6
with: with:
fetch-depth: 0 # Modver needs full history for comparison fetch-depth: 0 # Modver needs full history for comparison
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@v5
with: with:
go-version: "stable" go-version: "stable"
- name: Modver - name: Modver
uses: bobg/modver@v2.11.0 uses: bobg/modver@v2.12.0
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
pull_request_url: https://github.com/${{ github.repository }}/pull/${{ github.event.number }} pull_request_url: https://github.com/${{ github.repository }}/pull/${{ github.event.number }}

View file

@ -6,9 +6,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v6
with: with:
go-version: "^1.23.6" go-version-file: "go.mod"
check-latest: true
- name: Set up Node.js - name: Set up Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v3

View file

@ -7,17 +7,19 @@ on:
jobs: jobs:
releases-matrix: releases-matrix:
name: Release Go binaries name: Release Go binaries
# use oldest available ubuntu to be compatible with more libc.so revs.
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
permissions: permissions:
contents: write contents: write
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v5 uses: actions/setup-go@v6
with: with:
go-version: '^1.23.6' go-version: '^1.24.9'
check-latest: true
- name: Build - name: Build
run: make dist run: make dist

View file

@ -78,7 +78,8 @@ Download the binaries from the most recent release assets on Github.
### Build from sources ### Build from sources
- A recent version of **Go** (1.23+) should be installed. [Go installation](https://go.dev/doc/install) - Needs a [supported version](docs/Development.md) of **Go** to be installed.
[Go installation](https://go.dev/doc/install)
- Clone the repository `git clone https://github.com/gocsaf/csaf.git ` - Clone the repository `git clone https://github.com/gocsaf/csaf.git `

View file

@ -3,7 +3,7 @@
## Supported Go versions ## Supported Go versions
We support the latest version and the one before We support the latest version and the one before
the latest version of Go (currently 1.23 and 1.24). the latest version of Go (currently 1.24 and 1.25).
## Generated files ## Generated files