https://github.com/csmith/github-workflows
Common workflows for GitHub actions
https://github.com/csmith/github-workflows
Last synced: 5 months ago
JSON representation
Common workflows for GitHub actions
- Host: GitHub
- URL: https://github.com/csmith/github-workflows
- Owner: csmith
- License: mit
- Created: 2023-01-01T22:03:19.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-10-30T16:15:59.000Z (8 months ago)
- Last Synced: 2025-10-30T18:16:58.818Z (8 months ago)
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```yaml
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:
```yaml
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:
```yaml
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:
```yaml
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`](https://pkg.go.dev/golang.org/x/vuln/cmd/govulncheck)
and runs it on a package. Example usage:
```yaml
name: check for go vulnerabilities
on:
push:
branches:
- master
pull_request:
jobs:
build:
uses: csmith/github-workflows/.github/workflows/go-vulncheck.yml@master
```