Skip to content

Commit fa23cfc

Browse files
committed
added other changes
1 parent 111482c commit fa23cfc

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/actions/trivy_security_scan/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
name: 'Trivy Security Scan'
22

33
runs:
4-
using: "composite"
4+
55
steps:
6-
6+
- name: Checkout Repo
7+
uses: actions/checkout@v4
8+
with:
9+
fetch-depth: 0
10+
ref: ${{ github.event.pull_request.head.ref }}
11+
712
# Generate CycloneDX SBOM and License Scan
813
- name: Generate CycloneDX SBOM with Anchore Syft
914
shell: bash

.github/workflows/trivy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Trivy Test Run
22

33
on:
4+
push:
45
workflow_dispatch:
56
inputs:
67
DEPLOY_BRANCH:
@@ -10,8 +11,12 @@ on:
1011
jobs:
1112
scan:
1213
runs-on: [self-hosted, "centos8"]
14+
timeout-minutes: 30
1315
env:
1416
DEPLOY_BRANCH : ${{github.ref_name}}
17+
outputs:
18+
git_branch: ${{ env.GIT_BRANCH }}
19+
1520
steps:
1621
- name: Run Trivy Security Scan
1722
uses: ./.github/actions/trivy_security_scan

0 commit comments

Comments
 (0)