-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (59 loc) · 1.51 KB
/
Copy pathfeature.yml
File metadata and controls
68 lines (59 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
---
name: feature
on:
push:
branches-ignore:
- main
permissions:
contents: read
jobs:
hadolint:
name: hadolint
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v7
- name: run-hadolint
uses: hadolint/hadolint-action@v3.3.0
with:
dockerfile: ./Dockerfile
trivy-scan:
name: trivy-scan
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v7
- name: run-trivy-scan
uses: aquasecurity/trivy-action@v0.36.0
with:
scan-type: config
severity: HIGH,CRITICAL
exit-code: "1"
scan-ref: .
actionlint:
name: actionlint
runs-on: ubuntu-24.04
steps:
- name: checkout
uses: actions/checkout@v7
- name: run-actionlint
uses: raven-actions/actionlint@v2
with:
fail-on-error: true
gitguardian-scan:
name: gitguardian-scan
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- name: checkout
uses: actions/checkout@v7
with:
fetch-depth: 0 # fetch all history so multiple commits can be scanned
- name: scan
uses: GitGuardian/ggshield-action@v1
env:
GITHUB_PUSH_BEFORE_SHA: ${{ github.event.before }}
GITHUB_PUSH_BASE_SHA: ${{ github.event.base }}
GITHUB_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
GITGUARDIAN_API_KEY: ${{ secrets.GITGUARDIAN_API_KEY }}