Skip to content

Reverse the direction of the forwarding, more trust at the backup runner, less at the backup server #11

Reverse the direction of the forwarding, more trust at the backup runner, less at the backup server

Reverse the direction of the forwarding, more trust at the backup runner, less at the backup server #11

Workflow file for this run

name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
pull-requests: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
cache: false
- name: Run Gosec Security Scanner
uses: securego/gosec@master
with:
args: ./...
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
only-new-issues: true # on PR only show new issues
skip-cache: true # avoid influencing caching that also hurts the build job