Update .github/workflows.yaml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 49s

This commit is contained in:
hgn
2025-01-15 23:22:45 +01:00
parent 5330238c7b
commit 9a0e818403

View File

@@ -1,19 +1,29 @@
name: Gitea Actions Demo name: build
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 on:
on: [push] push:
branches:
- main
- devpod
pull_request:
jobs: jobs:
Explore-Gitea-Actions: build:
runs-on: ubuntu-latest name: Build
runs-on: ubuntu-20.04
steps: steps:
- run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - name: Checkout code
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!"
- run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}."
- name: Check out repository code
uses: actions/checkout@v4 uses: actions/checkout@v4
- run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner."
- run: echo "🖥️ The workflow is now ready to test your code on the runner." - name: Run Trivy vulnerability scanner in IaC mode
- name: List files in the repository uses: aquasecurity/trivy-action@0.28.0
run: | with:
ls ${{ gitea.workspace }} scan-type: 'config'
- run: echo "🍏 This job's status is ${{ job.status }}." hide-progress: true
format: 'sarif'
output: 'trivy-results.sarif'
exit-code: '1'
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'