Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot download release asset (Not Found) #171

Closed
GorlikItsMe opened this issue Aug 10, 2023 · 1 comment · Fixed by #179
Closed

Cannot download release asset (Not Found) #171

GorlikItsMe opened this issue Aug 10, 2023 · 1 comment · Fixed by #179

Comments

@GorlikItsMe
Copy link

GorlikItsMe commented Aug 10, 2023

Behaviour

Expected behaviour

File should be found and send to VT

Actual behaviour

Cant found it

Configuration

  • Repository URL (if public):
  • Build URL (if public):
name: Virustotal Scan

on:
  release:
    types: [published]

jobs:
  virustotal:
    runs-on: ubuntu-latest
    steps:
      - name: VirusTotal Scan
        uses: crazy-max/ghaction-virustotal@master
        with:
          vt_api_key: ${{ secrets.VT_API_KEY }}
          github_token: ${{ secrets.GITHUB_TOKEN }}
          update_release_body: true
          files: |
            .exe$

Logs

2023-08-10T17:59:41.3566402Z Requested labels: ubuntu-latest
2023-08-10T17:59:41.3566674Z Job defined at: Nosvoid/nosvoid-launcher/.github/workflows/virustotal.yml@refs/tags/v1.12.2
2023-08-10T17:59:41.3566781Z Waiting for a runner to pick up this job...
2023-08-10T17:59:41.9495780Z Job is waiting for a hosted runner to come online.
2023-08-10T17:59:44.3530561Z Job is about to start running on the hosted runner: GitHub Actions 2 (hosted)
2023-08-10T17:59:47.4768716Z Current runner version: '2.307.1'
2023-08-10T17:59:47.4799231Z ##[group]Operating System
2023-08-10T17:59:47.4799921Z Ubuntu
2023-08-10T17:59:47.4800386Z 22.04.3
2023-08-10T17:59:47.4800687Z LTS
2023-08-10T17:59:47.4801080Z ##[endgroup]
2023-08-10T17:59:47.4801481Z ##[group]Runner Image
2023-08-10T17:59:47.4801920Z Image: ubuntu-22.04
2023-08-10T17:59:47.4802367Z Version: 20230806.1.0
2023-08-10T17:59:47.4802991Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20230806.1/images/linux/Ubuntu2204-Readme.md
2023-08-10T17:59:47.4803805Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20230806.1
2023-08-10T17:59:47.4804677Z ##[endgroup]
2023-08-10T17:59:47.4805164Z ##[group]Runner Image Provisioner
2023-08-10T17:59:47.4805609Z 2.0.264.1
2023-08-10T17:59:47.4806009Z ##[endgroup]
2023-08-10T17:59:47.4807193Z ##[group]GITHUB_TOKEN Permissions
2023-08-10T17:59:47.4808058Z Actions: write
2023-08-10T17:59:47.4808406Z Checks: write
2023-08-10T17:59:47.4809076Z Contents: write
2023-08-10T17:59:47.4809643Z Deployments: write
2023-08-10T17:59:47.4810009Z Discussions: write
2023-08-10T17:59:47.4810409Z Issues: write
2023-08-10T17:59:47.4810796Z Metadata: read
2023-08-10T17:59:47.4811241Z Packages: write
2023-08-10T17:59:47.4811637Z Pages: write
2023-08-10T17:59:47.4811988Z PullRequests: write
2023-08-10T17:59:47.4812430Z RepositoryProjects: write
2023-08-10T17:59:47.4812933Z SecurityEvents: write
2023-08-10T17:59:47.4813368Z Statuses: write
2023-08-10T17:59:47.4813758Z ##[endgroup]
2023-08-10T17:59:47.4818084Z Secret source: Actions
2023-08-10T17:59:47.4818714Z Prepare workflow directory
2023-08-10T17:59:47.5705786Z Prepare all required actions
2023-08-10T17:59:47.5936451Z Getting action download info
2023-08-10T17:59:47.8831876Z Download action repository 'crazy-max/ghaction-virustotal@v3' (SHA:6d0c025d8231cb0687a3173a515177b3cac8e064)
2023-08-10T17:59:48.7535827Z Complete job name: virustotal
2023-08-10T17:59:48.8717168Z ##[group]Run crazy-max/ghaction-virustotal@v3
2023-08-10T17:59:48.8717619Z with:
2023-08-10T17:59:48.8718324Z   vt_api_key: ***
2023-08-10T17:59:48.8718828Z   github_token: ***
2023-08-10T17:59:48.8719122Z   update_release_body: true
2023-08-10T17:59:48.8719410Z   files: .exe$

2023-08-10T17:59:48.8719680Z   vt_monitor: false
2023-08-10T17:59:48.8719937Z   monitor_path: /
2023-08-10T17:59:48.8720266Z   request_rate: 0
2023-08-10T17:59:48.8720538Z ##[endgroup]
2023-08-10T17:59:49.2057629Z Release event detected for refs/tags/v1.12.2 in this workflow. Preparing to scan assets...
2023-08-10T17:59:49.6628789Z 1 asset(s) will be sent to VirusTotal for analysis.
2023-08-10T17:59:49.6746756Z ##[group]1 asset(s) will be sent to VirusTotal for analysis.
2023-08-10T17:59:49.8543377Z ##[endgroup]
2023-08-10T17:59:49.8621763Z ##[error]Cannot download release asset ElectronApp-Setup-1.12.2.exe (120979415): Not Found
2023-08-10T17:59:49.9021947Z Cleaning up orphan processes

More Information

permissions:
  contents: write
  packages: write

To yml (still dont work)

  • I'm sure file is found in informations about release but for some reason cant download it (no permission?)
@crazy-max
Copy link
Owner

Opened #179 to mitigate this issue. Can you try with:

uses: crazy-max/ghaction-virustotal@octokit-retry

Thanks

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

Successfully merging a pull request may close this issue.

2 participants