diff --git a/.github/workflows/frogbot-scan-pull-request.yml b/.github/workflows/frogbot-scan-pull-request.yml index b3c8949f..e9c9c5d5 100644 --- a/.github/workflows/frogbot-scan-pull-request.yml +++ b/.github/workflows/frogbot-scan-pull-request.yml @@ -12,9 +12,11 @@ jobs: # "frogbot" GitHub environment can approve the pull request to be scanned. environment: frogbot steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v7 with: ref: ${{ github.event.pull_request.head.sha }} + persist-credentials: false + allow-unsafe-pr-checkout: true - uses: jfrog-fastci/fastci@main # Use the FastCI optimization action with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ad008dc6..3f270bb5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,9 +27,11 @@ jobs: JF_CLI_TEST_URL: ${{ secrets.JFROG_CLI_TEST_URL }} JF_CLI_TEST_ACCESS_TOKEN: ${{ secrets.JFROG_CLI_TEST_ACCESS_TOKEN }} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 with: ref: ${{ github.event.pull_request.head.sha }} + persist-credentials: false + allow-unsafe-pr-checkout: true - name: Unlabel 'safe to test' uses: actions-ecosystem/action-remove-labels@v1