Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub actions: Labeler, Add Release workflow, try to fix trivy #9

Merged
merged 3 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
# https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes

changelog:
exclude:
labels:
- skip-changelog

categories:
- title: Breaking Changes 🛠
labels:
- backwards-incompatible

- title: New Features 🎉
labels:
- enhancement

- title: Other Changes
labels:
- "*"
5 changes: 2 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,13 @@ jobs:
with:
image-ref: 'ci/voxbox-${{ matrix.rubygem_puppet }}:${{ github.sha }}'
format: 'sarif'
output: 'trivy-results.sarif'
output: 'trivy-results-${{ matrix.rubygem_puppet }}.sarif'
severity: 'CRITICAL,HIGH'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'
matrix: ${{ toJson(matrix) }}
sarif_file: 'trivy-results-${{ matrix.rubygem_puppet }}.sarif'

# - name: Run Trivy in GitHub SBOM mode and submit results to Dependency Graph
# uses: aquasecurity/trivy-action@master
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
---
name: "Pull Request Labeler"
name: Labeler 🏷️

on:
pull_request_target: {}
- pull_request_target

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
name: Labeler
uses: voxpupuli/crafty/.github/workflows/labeler.yml@main
with:
allowed_owner: ${{ github.repository_owner }}
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Release 🚀

on:
push:
tags:
- '*'

jobs:
release:
name: Release
uses: voxpupuli/crafty/.github/workflows/release.yml@main
with:
allowed_owner: ${{ github.repository_owner }}