Skip to content

Commit 2297e54

Browse files
Update secret-scanning.yml
fixed error on line 57
1 parent 5db5081 commit 2297e54

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/secret-scanning.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ jobs:
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"],
@@ -53,8 +52,7 @@ jobs:
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
@@ -93,13 +91,13 @@ EOF
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+
}
103101
EOF
104102

105103
# - name: Alert to Microsoft Teams on secret detection

0 commit comments

Comments
 (0)