Skip to content

HTTP Response 403 when downloading gitleaks #214

Description

@tarunkant

Hello, I am encountering this issue:

Run gitleaks/gitleaks-action@v2
[XXXXXXX] is an organization. License key is required.
gitleaks version: 8.24.3
Version to install: 8.24.3 (target directory: /tmp/gitleaks-8.24.3)
Downloading gitleaks from https://github.com/zricethezav/gitleaks/releases/download/v8.24.3/gitleaks_8.24.3_linux_x64.tar.gz
Error: could not install gitleaks from https://github.com/zricethezav/gitleaks/releases/download/v8.24.3/gitleaks_8.24.3_linux_x64.tar.gz, error: Error: Unexpected HTTP response: 403
/home/runner/_work/_actions/gitleaks/gitleaks-action/v2/dist/index.js:13528
            throw new Error("parameter 'file' is required");
                  ^

Error: parameter 'file' is required
    at Object.<anonymous> (/home/runner/_work/_actions/gitleaks/gitleaks-action/v2/dist/index.js:13528:19)
    at Generator.next (<anonymous>)
    at /home/runner/_work/_actions/gitleaks/gitleaks-action/v2/dist/index.js:13327:71
    at new Promise (<anonymous>)
    at __webpack_modules__.27784.__awaiter (/home/runner/_work/_actions/gitleaks/gitleaks-action/v2/dist/index.js:13323:12)
    at Object.extractTar (/home/runner/_work/_actions/gitleaks/gitleaks-action/v2/dist/index.js:13526:12)
    at Object.Install (/home/runner/_work/_actions/gitleaks/gitleaks-action/v2/dist/index.js:129467:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async start (/home/runner/_work/_actions/gitleaks/gitleaks-action/v2/dist/index.js:140730:22)

This issue is coming very frequently; however, if you re-run the failed job or close and re-open the PR, this issue gets resolved.

The workflow is simple:

      - name: Run GitLeaks Actions
        id: rungitleaks
        uses: gitleaks/gitleaks-action@v2
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}} 
          GITLEAKS_ENABLE_UPLOAD_ARTIFACT: false

cc/ @zricethezav @paulschuberth

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions