telemetry updates #179535
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Secrets Detection | |
| on: pull_request | |
| jobs: | |
| secrets_detection: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'demisto/content' && github.event.pull_request.head.repo.fork == false && github.actor != 'dependabot[bot]' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" # The Python version set here is the minimum supported by content, if you change it here, please change all the places containing this comment. | |
| - name: Setup Poetry | |
| uses: Gr1N/setup-poetry@48b0f77c8c1b1b19cb962f0f00dff7b4be8f81ec # v9 | |
| - name: Install Python Dependencies | |
| run: | | |
| poetry install --with github-actions | |
| - name: Run Secrets Detection | |
| env: | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| BRANCH_NAME: ${{ github.head_ref }} | |
| USERNAME: ${{ secrets.SECRET_CHECK_USER_NG }} | |
| PASSWORD: ${{ secrets.SECRET_CHECK_PASS_NG }} | |
| GOLD_SERVER_URL: ${{ secrets.GOLD_SERVER_URL_NG }} | |
| run: | | |
| echo "Run secrets detection for PR: $PR_NUMBER on branch: $BRANCH_NAME" | |
| investigation_id=$(poetry run .github/github_workflow_scripts/run_secrets_detection.py --pr_number $PR_NUMBER --branch_name $BRANCH_NAME --username $USERNAME --password $PASSWORD --gold_server_url $GOLD_SERVER_URL) | |
| echo "INVESTIGATION_ID=$investigation_id" >> $GITHUB_ENV | |
| - name: Wait For Playbook To Finish | |
| env: | |
| GOLD_API_KEY: ${{ secrets.SECRETS_GOLD_API_KEY_NG }} | |
| AUTH_ID: ${{ secrets.SECRETS_GOLD_AUTH_ID_NG }} | |
| GOLD_SERVER_URL: ${{ secrets.GOLD_SERVER_URL_NG_RESULT }} | |
| run: | | |
| echo "Invastigation id is: $INVESTIGATION_ID " | |
| poetry run python ./.github/github_workflow_scripts/run_secrets_detection_get_playbook_status.py -i $INVESTIGATION_ID -k $GOLD_API_KEY -ai $AUTH_ID --gold_server_url $GOLD_SERVER_URL |