Skip to content

Commit 611c531

Browse files
cleanup
1 parent c285b10 commit 611c531

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

action.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# with:
88
# checkout: true
99
# fetch-depth: 0
10-
# ref: 'main'
10+
# ref: ''
1111
# scan-type: '--scan'
1212
branding:
1313
color: 'orange'
@@ -25,8 +25,8 @@ inputs:
2525
required: false
2626
type: string
2727
ref:
28-
default: '' # the default branch
29-
description: 'The version, ref, or hash of awslabs/git-secrets to use'
28+
default: ''
29+
description: 'A version, ref, or hash of awslabs/git-secrets to use with the default branch as the default'
3030
required: false
3131
type: string
3232
scan-type:
@@ -59,9 +59,11 @@ runs:
5959
# Make git-secrets
6060
cd $GIT_SECRETS_REPOSITORY_PATH
6161
make install;
62+
# Add to the PATH
63+
echo "$PREFIX/bin/" >> "$GITHUB_PATH"
64+
# No longer need the source
6265
cd $GITHUB_WORKSPACE
6366
rm -r -f $GIT_SECRETS_REPOSITORY_PATH
64-
echo "$PREFIX/bin/" >> "$GITHUB_PATH"
6567
shell: bash
6668
- if: inputs.checkout
6769
name: Checkout the repository to scan history
@@ -70,14 +72,15 @@ runs:
7072
fetch-depth: ${{ inputs.fetch-depth }} # to scan history
7173
- name: Install git-secrets
7274
run: |
73-
# Install git-secrets
74-
echo $PATH
75-
echo "Install git-secrets"
75+
echo "::group::Install git-secrets"
7676
git-secrets --install
77-
echo "Register AWS"
77+
echo "::endgroup::"
78+
echo "::group::Register AWS"
7879
git-secrets --register-aws
79-
echo "List git-secrets"
80+
echo "::endgroup::"
81+
echo "::group::List git-secrets"
8082
git-secrets --list
83+
echo "::endgroup::"
8184
shell: bash
8285
- name: Scan with git-secrets
8386
run: |

0 commit comments

Comments
 (0)