Skip to content

Configure application security policy in CI #16

Configure application security policy in CI

Configure application security policy in CI #16

Workflow file for this run

name: build
on:
pull_request:
branches:
- main
permissions: {}
jobs:
build-snapshot:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: stable
- uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
id: goreleaser
with:
version: latest
args: build --clean --verbose --single-target --snapshot
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: lagoon-linter
path: dist/*
cli-test:
runs-on: ubuntu-latest
needs: build

Check failure on line 32 in .github/workflows/build-test.yaml

View workflow run for this annotation

GitHub Actions / build

Invalid workflow file

The workflow is not valid. .github/workflows/build-test.yaml (Line: 32, Col: 12): Job 'cli-test' depends on unknown job 'build'.
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/download-artifact@v2
with:
name: lagoon-linter
path: ./dist
- run: ./cli-test.sh