File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+
143# DevSecOps Flask Application Beginner friendly project
244
345A production-grade ** DevSecOps project** demonstrating secure CI/CD practices using:
Original file line number Diff line number Diff line change 1+ import os
12from flask import Flask , render_template , jsonify
23
34app = Flask (__name__ )
@@ -18,4 +19,6 @@ def health():
1819 return jsonify ({"health" : "OK" })
1920
2021if __name__ == "__main__" :
21- app .run (host = "0.0.0.0" , port = 5000 )
22+ host = os .getenv ("FLASK_HOST" , "127.0.0.1" )
23+ port = int (os .getenv ("FLASK_PORT" , 5000 ))
24+ app .run (host = host , port = port )
Original file line number Diff line number Diff line change 2020
2121 containers :
2222 - name : flask-app
23- image : ghcr.io/cybraman/DevSecops-Project :sha-729be1b2ba6a93137b748937137f339ed228d2f0
23+ image : ghcr.io/cybraman/devSecops-project :sha-729be1b2ba6a93137b748937137f339ed228d2f0
2424
2525 # Image tag will be updated automatically by CI/CD
2626 imagePullPolicy : Always
You can’t perform that action at this time.
0 commit comments