File tree Expand file tree Collapse file tree 1 file changed +35
-3
lines changed
Expand file tree Collapse file tree 1 file changed +35
-3
lines changed Original file line number Diff line number Diff line change 1- name : msdo-secret-scanning
1+ name : msdo-secret-scanning
22
33on :
44 workflow_call :
2424 git clone https://github.com/${{ github.repository }} .
2525 git checkout ${{ github.ref_name }}
2626
27+ - name : Inject .gdnsettings to force .tf secret scanning
28+ run : |
29+ mkdir -p .gdn
30+ cat <<EOF > .gdn/.gdnsettings
31+ {
32+ "version": "1.0",
33+ "fileFiltering": {
34+ "filePathIncludes": ["**/*.tf"],
35+ "fileNameExcludes": [],
36+ "filePathExcludes": []
37+ },
38+ "toolConfigurations": {
39+ "credscan": {
40+ "enabled": true,
41+ "parameters": {
42+ "extension": ".tf",
43+ "scanUnknownExtensions": true,
44+ "severity": "high"
45+ }
46+ }
47+ },
48+ "break": {
49+ "policies": [
50+ {
51+ "tool": "credscan",
52+ "minimumSeverity": "medium"
53+ }
54+ ]
55+ }
56+ }
57+ EOF
58+
2759 - name : Set tool to only run secret scan
2860 run : echo "TOOLS=credscan" >> $GITHUB_ENV
2961
68100 "checkout_uri": "https://github.com/${{ github.repository }}",
69101 "tool_name": "MSDO-CredScan"
70102 }
71- EOF
72-
103+ EOF
104+
73105 # - name: Alert to Microsoft Teams on secret detection
74106 # if: github.repository_visibility == 'public'
75107 # run: |
You can’t perform that action at this time.
0 commit comments