Merge pull request #77 from voxpupuli/readme_hint_about_new_names #163
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI🚦 | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- main | |
jobs: | |
general_ci: | |
uses: voxpupuli/crafty/.github/workflows/general_ci.yaml@main | |
with: | |
shellcheck_scan_dir: './puppetdb' | |
build_docker_image: | |
name: 'Built test Docker image' | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: 'puppetdb' | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Build Docker image | |
uses: docker/build-push-action@v6 | |
with: | |
context: puppetdb | |
tags: 'ci/puppetdb:${{ github.sha }}' | |
push: false | |
- name: Run Trivy vulnerability scanner | |
uses: aquasecurity/trivy-action@master | |
with: | |
image-ref: 'ci/puppetdb:${{ github.sha }}' | |
format: 'sarif' | |
output: 'trivy-results.sarif' | |
- name: Upload Trivy scan results to GitHub Security tab | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
sarif_file: 'trivy-results.sarif' | |
tests: | |
needs: | |
- general_ci | |
- build_docker_image | |
runs-on: ubuntu-latest | |
name: Test suite | |
steps: | |
- run: echo Test suite completed |