Skip to content

Merge pull request #226 from l3montree-dev/225-pipeline-fails-httpsgi… #198

Merge pull request #226 from l3montree-dev/225-pipeline-fails-httpsgi…

Merge pull request #226 from l3montree-dev/225-pipeline-fails-httpsgi… #198

# DevSecOps Workflow Definition
# This workflow is triggered on every push to the repository
name: DevGuard-Workflow
on:
push:
jobs:
# Secret scanning job to detect secrets in codebase
secret-scanning:
uses: l3montree-dev/devguard-action/.github/workflows/secret-scanning.yml@main
sast:
uses: l3montree-dev/devguard-action/.github/workflows/sast.yml@main
sca:
uses: l3montree-dev/devguard-action/.github/workflows/software-composition-analysis.yml@main
with:
asset-name: l3montree-cybersecurity/projects/devguard/assets/devguard
api-url: https://api.main.devguard.org
secrets:
devguard-token: ${{ secrets.DEVGUARD_TOKEN }}
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v5
with:
go-version: '1.23'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
args: --timeout=30m
version: v1.60
tests:
name: tests
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Run unittests
run: go test ./... -cover
# Docker image build job
build-image:
uses: l3montree-dev/devguard-action/.github/workflows/build-image.yml@main

Check failure on line 57 in .github/workflows/devguard-scanner.yaml

View workflow run for this annotation

GitHub Actions / DevGuard-Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/devguard-scanner.yaml (Line: 57, Col: 11): Input asset-name is required, but not provided while calling. .github/workflows/devguard-scanner.yaml (Line: 57, Col: 11): Secret devguard-token is required, but not provided while calling.

Check failure on line 57 in .github/workflows/devguard-scanner.yaml

View workflow run for this annotation

GitHub Actions / DevGuard-Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/devguard-scanner.yaml (Line: 57, Col: 11): Input asset-name is required, but not provided while calling. .github/workflows/devguard-scanner.yaml (Line: 57, Col: 11): Secret devguard-token is required, but not provided while calling.

Check failure on line 57 in .github/workflows/devguard-scanner.yaml

View workflow run for this annotation

GitHub Actions / DevGuard-Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/devguard-scanner.yaml (Line: 57, Col: 11): Input asset-name is required, but not provided while calling. .github/workflows/devguard-scanner.yaml (Line: 57, Col: 11): Secret devguard-token is required, but not provided while calling.

Check failure on line 57 in .github/workflows/devguard-scanner.yaml

View workflow run for this annotation

GitHub Actions / DevGuard-Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/devguard-scanner.yaml (Line: 57, Col: 11): Input asset-name is required, but not provided while calling. .github/workflows/devguard-scanner.yaml (Line: 57, Col: 11): Secret devguard-token is required, but not provided while calling.

Check failure on line 57 in .github/workflows/devguard-scanner.yaml

View workflow run for this annotation

GitHub Actions / DevGuard-Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/devguard-scanner.yaml (Line: 57, Col: 11): Input asset-name is required, but not provided while calling. .github/workflows/devguard-scanner.yaml (Line: 57, Col: 11): Secret devguard-token is required, but not provided while calling.

Check failure on line 57 in .github/workflows/devguard-scanner.yaml

View workflow run for this annotation

GitHub Actions / DevGuard-Workflow

Invalid workflow file

The workflow is not valid. .github/workflows/devguard-scanner.yaml (Line: 57, Col: 11): Input asset-name is required, but not provided while calling. .github/workflows/devguard-scanner.yaml (Line: 57, Col: 11): Secret devguard-token is required, but not provided while calling.
build-scanner-image:
uses: l3montree-dev/devguard-action/.github/workflows/build-image.yml@main
with:
image-suffix: "-scanner"
artifact-suffix: "-scanner"
context: .
dockerfile: Dockerfile.scanner
# Image scanning job to detect vulnerabilities in the built Docker image
container-scanning:
uses: l3montree-dev/devguard-action/.github/workflows/container-scanning.yml@main
needs:
- build-image
with:
asset-name: l3montree-cybersecurity/projects/devguard/assets/devguard
api-url: https://api.main.devguard.org
secrets:
devguard-token: ${{ secrets.DEVGUARD_TOKEN }}
# Image scanning job to detect vulnerabilities in the built Docker image
scanner-container-scanning:
uses: l3montree-dev/devguard-action/.github/workflows/container-scanning.yml@main
needs:
- build-scanner-image
with:
asset-name: l3montree-cybersecurity/projects/devguard/assets/devguard-scanner
api-url: https://api.main.devguard.org
artifact-suffix: "-scanner"
secrets:
devguard-token: ${{ secrets.DEVGUARD_TOKEN }}
deploy:
needs:
- build-image
- container-scanning
- secret-scanning
- sca
- sast
- golangci
- tests
uses: l3montree-dev/devguard-action/.github/workflows/deploy.yml@main
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
deploy-scanner:
needs:
- build-scanner-image
- scanner-container-scanning
- secret-scanning
- sca
- sast
- golangci
- tests
uses: l3montree-dev/devguard-action/.github/workflows/deploy.yml@main
with:
artifact-suffix: "-scanner"
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
sign:
needs:
- build-image
- container-scanning
- secret-scanning
- sca
- sast
- golangci
- tests
uses: l3montree-dev/devguard-action/.github/workflows/sign.yml@main
with:
asset-name: l3montree-cybersecurity/projects/devguard/assets/devguard
api-url: https://api.main.devguard.org
secrets:
devguard-token: ${{ secrets.DEVGUARD_TOKEN }}
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
sign-scanner:
needs:
- build-scanner-image
- scanner-container-scanning
- secret-scanning
- sca
- sast
- golangci
- tests
uses: l3montree-dev/devguard-action/.github/workflows/sign.yml@main
with:
asset-name: l3montree-cybersecurity/projects/devguard/assets/devguard-scanner
api-url: https://api.main.devguard.org
artifact-suffix: "-scanner"
secrets:
devguard-token: ${{ secrets.DEVGUARD_TOKEN }}
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')