File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change 2727 - name : Inject .gdnsettings to force .tf secret scanning
2828 run : |
2929 mkdir -p .gdn
30- cat <<EOF > .gdn/.gdnsettings
31- {
30+ echo '{
3231 "version": "1.0",
3332 "fileFiltering": {
3433 "filePathIncludes": ["**/*.tf"],
5352 }
5453 ]
5554 }
56- }
57- EOF
55+ }' > .gdn/.gdnsettings
5856
5957 - name : Set tool to only run secret scan
6058 run : echo "TOOLS=credscan" >> $GITHUB_ENV
9391 -H "Content-Type: application/json" \
9492 https://api.github.com/repos/${{ github.repository }}/code-scanning/sarifs \
9593 -d @- <<EOF
96- {
97- "commit_sha": "${{ github.sha }}",
98- "ref": "${{ github.ref }}",
99- "sarif": "$encoded_sarif",
100- "checkout_uri": "https://github.com/${{ github.repository }}",
101- "tool_name": "MSDO-CredScan"
102- }
94+ {
95+ " commit_sha " : " ${{ github.sha }}" ,
96+ " ref " : " ${{ github.ref }}" ,
97+ " sarif " : " $encoded_sarif" ,
98+ " checkout_uri " : " https://github.com/${{ github.repository }}" ,
99+ " tool_name " : " MSDO-CredScan"
100+ }
103101EOF
104102
105103 # - name: Alert to Microsoft Teams on secret detection
You can’t perform that action at this time.
0 commit comments