No description
Find a file
Chris Smith fd1c4cab3b
Just inherit secrets
You can't pass GITHUB_TOKEN as it's special cased, but you
can't use it without passing it........
2025-12-08 15:39:24 +00:00
.github Just inherit secrets 2025-12-08 15:39:24 +00:00
.gitignore Add workflow to just build a go project 2023-07-31 11:16:35 +01:00
LICENCE Build image workflow 2023-01-01 22:03:00 +00:00
README.md Just inherit secrets 2025-12-08 15:39:24 +00:00

Common GitHub Workflows

This repo contains some GitHub workflows I use in my projects.

build-image.yml

Builds a container image using buildah and pushes it to the GitHub container registry. Example usage:

name: build image
on:
  push:
    branches:
      - master
    tags:
      - v*
jobs:
  build:
    uses: csmith/github-workflows/.github/workflows/build-image.yml@master
    secrets: inherit

container-test.yml

Builds a container image using buildah, without pushing it anywhere. Example usage:

name: check container build
on:
  pull_request:
jobs:
  build:
    uses: csmith/github-workflows/.github/workflows/container-test.yml@master

go-build.yml

Installs the current stable version of Go and builds a package. Example usage:

name: build go project
on:
  push:
    branches:
      - master
  pull_request:
jobs:
  build:
    uses: csmith/github-workflows/.github/workflows/go-build.yml@master

go-test.yml

Installs the current stable version of Go and runs all tests in a package. Example usage:

name: run go tests
on:
  push:
    branches:
      - master
  pull_request:
jobs:
  build:
    uses: csmith/github-workflows/.github/workflows/go-test.yml@master

go-vulncheck.yml

Installs the latest version of govulncheck and runs it on a package. Example usage:

name: check for go vulnerabilities
on:
  push:
    branches:
      - master
  pull_request:
jobs:
  build:
    uses: csmith/github-workflows/.github/workflows/go-vulncheck.yml@master