Commit 4a31d49 1 parent 5d05116 commit 4a31d49 Copy full SHA for 4a31d49
File tree 1 file changed +27
-24
lines changed
1 file changed +27
-24
lines changed Original file line number Diff line number Diff line change 34
34
- name : Run mypy
35
35
run : uv run mypy .
36
36
37
+ security :
38
+ runs-on : ubuntu-24.04
39
+ timeout-minutes : 10
40
+ steps :
41
+ - uses : actions/checkout@v4
42
+
43
+ - name : Run Trivy vulnerability scanner
44
+ uses : aquasecurity/trivy-action@master
45
+ with :
46
+ scan-type : " fs"
47
+ scan-ref : " ."
48
+ format : " table"
49
+ exit-code : " 1"
50
+ severity : " CRITICAL"
51
+ skip-dirs : " tests"
52
+
53
+ - name : Check dependencies for vulnerabilities
54
+ uses : aquasecurity/trivy-action@master
55
+ with :
56
+ scan-type : " config"
57
+ scan-ref : " ."
58
+ format : " table"
59
+ exit-code : " 1"
60
+ severity : " CRITICAL"
61
+ vuln-type : " library"
62
+
37
63
test :
38
64
runs-on : ubuntu-24.04
39
65
timeout-minutes : 15
61
87
runs-on : ubuntu-24.04
62
88
needs :
63
89
- check
90
+ - security
64
91
- test
65
92
concurrency : release
66
93
81
108
docker :
82
109
runs-on : ubuntu-24.04
83
110
needs : release
84
- # if: needs.release.outputs.released == 'true'
85
111
steps :
86
112
- uses : actions/checkout@v4
87
113
@@ -90,26 +116,3 @@ jobs:
90
116
with :
91
117
username : ${{ secrets.DOCKER_USERNAME }}
92
118
password : ${{ secrets.DOCKER_PASSWORD }}
93
-
94
- - name : Build and scan image
95
- uses : docker/build-push-action@v6
96
- with :
97
- push : false
98
- load : true
99
- tags : antonk0/gigachat-adapter:${{ needs.release.outputs.version }}
100
-
101
- - name : Run Trivy vulnerability scanner
102
- uses : aquasecurity/trivy-action@master
103
- with :
104
- image-ref : antonk0/gigachat-adapter:${{ needs.release.outputs.version }}
105
- format : " table"
106
- exit-code : " 1"
107
- severity : " CRITICAL"
108
-
109
- # - name: Build and Push Docker image
110
- # uses: docker/build-push-action@v6
111
- # with:
112
- # push: true
113
- # tags: |
114
- # antonk0/gigachat-adapter:latest
115
- # antonk0/gigachat-adapter:${{ needs.release.outputs.version }}
You can’t perform that action at this time.
0 commit comments