From c7c76a05816b4391eec6126ef9f42b0936fc08b9 Mon Sep 17 00:00:00 2001 From: Toni de la Fuente Date: Thu, 21 Oct 2021 12:15:09 +0200 Subject: [PATCH 1/4] Create main.yml --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..48e6c71d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,21 @@ +name: github-project-issue-to-sheets + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + workflow_dispatch: + issues: + types: [opened, deleted, transferred, closed, reopened, assigned, unassigned, labeled, unlabeled] + +jobs: + github-project-issue-to-sheets: + runs-on: ubuntu-latest + name: github-project-issue-to-sheets + steps: + - name: github-project-issue-to-sheets + id: github-project-issue-to-sheets + uses: ViRGiL175/github-project-issue-to-sheets@dev + with: + google-api-service-account-credentials: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_DATA }} + document-id: '1C-efuAzX_qQIqDSnSCLFFrow-GuVVF2vQUQpOCu5W6M' + sheet-name: 'Prowler GitHub Issues' From a3a5d7cc4d6873864078fd346689fe80b39ba6e3 Mon Sep 17 00:00:00 2001 From: Toni de la Fuente Date: Thu, 21 Oct 2021 12:35:42 +0200 Subject: [PATCH 2/4] Delete main.yml --- .github/workflows/main.yml | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml deleted file mode 100644 index 48e6c71d..00000000 --- a/.github/workflows/main.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: github-project-issue-to-sheets - -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the master branch -on: - workflow_dispatch: - issues: - types: [opened, deleted, transferred, closed, reopened, assigned, unassigned, labeled, unlabeled] - -jobs: - github-project-issue-to-sheets: - runs-on: ubuntu-latest - name: github-project-issue-to-sheets - steps: - - name: github-project-issue-to-sheets - id: github-project-issue-to-sheets - uses: ViRGiL175/github-project-issue-to-sheets@dev - with: - google-api-service-account-credentials: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_DATA }} - document-id: '1C-efuAzX_qQIqDSnSCLFFrow-GuVVF2vQUQpOCu5W6M' - sheet-name: 'Prowler GitHub Issues' From 7a3e353d542e5747da20e992ffd91244f3cab934 Mon Sep 17 00:00:00 2001 From: Pepe Fagoaga Date: Mon, 25 Oct 2021 14:49:51 +0200 Subject: [PATCH 3/4] docs(usage): Fix Shodan typo (#3) --- prowler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prowler b/prowler index 879f73b9..b0b4c14a 100755 --- a/prowler +++ b/prowler @@ -99,7 +99,7 @@ USAGE: -I External ID to be used when assuming roles (not mandatory), requires -A and -R -w whitelist file. See whitelist_sample.txt for reference and format (i.e.: whitelist_sample.txt) - -N Shoadan API key used by check extra7102. + -N Shodan API key used by check extra7102. -o Custom output directory, if not specified will use default prowler/output, requires -M (i.e.: -M csv -o /tmp/reports/) -B Custom output bucket, requires -M and it can work also with -o flag. From 12c6f726e9fc96c3441e4e757a81e205d275b82c Mon Sep 17 00:00:00 2001 From: Pepe Fagoaga Date: Tue, 26 Oct 2021 12:31:25 +0200 Subject: [PATCH 4/4] fix(lambda-secrets): change aws cli output format to extract keys and values (#4) --- checks/check_extra759 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checks/check_extra759 b/checks/check_extra759 index 15f73fcd..9bbf52ed 100644 --- a/checks/check_extra759 +++ b/checks/check_extra759 @@ -35,7 +35,7 @@ extra759(){ if [[ $LIST_OF_FUNCTIONS ]]; then for lambdafunction in $LIST_OF_FUNCTIONS;do LAMBDA_FUNCTION_VARIABLES_FILE="$SECRETS_TEMP_FOLDER/extra759-$lambdafunction-$regx-variables.txt" - LAMBDA_FUNCTION_VARIABLES=$($AWSCLI lambda $PROFILE_OPT --region $regx get-function-configuration --function-name $lambdafunction --query 'Environment.Variables' --output text > $LAMBDA_FUNCTION_VARIABLES_FILE) + LAMBDA_FUNCTION_VARIABLES=$($AWSCLI lambda $PROFILE_OPT --region $regx get-function-configuration --function-name $lambdafunction --query 'Environment.Variables' --output json > $LAMBDA_FUNCTION_VARIABLES_FILE) if [ -s $LAMBDA_FUNCTION_VARIABLES_FILE ];then # Implementation using https://github.com/Yelp/detect-secrets FINDINGS=$(secretsDetector file $LAMBDA_FUNCTION_VARIABLES_FILE)