Skip to content

fix: VirusTotal submission workflow - #117

Open
AdamMagued wants to merge 1 commit into
simeji:masterfrom
AdamMagued:fix/issue-114
Open

AdamMagued wants to merge 1 commit into
simeji:masterfrom
AdamMagued:fix/issue-114

Conversation

@AdamMagued

Copy link
Copy Markdown

Fixes #114

Solution

Verified with container sandbox test suite.

Signed-off-by: AdamMagued <adamismailmageud@gmail.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-14T15:38:17.022203Z c35ecde PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c35ecdecff

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

with:
vt_api_key: ${{ secrets.VT_API_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
release_id: ${{ steps.target.outputs.tag }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Pass the numeric GitHub release ID

On both a release event and a non-empty manual dispatch, steps.target.outputs.tag is a tag such as v1.1.3, but cssnr/virustotal-action's release_id input is the numeric GitHub release ID. The release-assets path therefore cannot retrieve or update that release (and .github/workflows/release.yml repeats the mismatch with github.ref_name), so the newly added scan fails for the normal inputs; use github.event.release.id for release events and resolve manually supplied tags to IDs.

Useful? React with 👍 / 👎.

if: steps.check-key.outputs.skip != 'true'
id: target
run: |
TAG="${{ inputs.release_tag || github.event.release.tag_name || github.ref_name }}"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Resolve the latest release when the dispatch input is blank

When workflow_dispatch is run with the documented blank default, that event has no release payload, so this expression falls through to github.ref_name (normally the selected branch such as main) rather than the latest release. That non-release value is then sent to the scan step, making the advertised "leave blank for latest release" path fail; query the latest release or require a tag instead.

Useful? React with 👍 / 👎.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatically submit all release files to VirusTotal

1 participant