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

Make consistent report file when OpenAI summary is requested #34

Conversation

AlbertoPellitteri
Copy link
Contributor

Actually the full report is written into the /tmp/report_output.md, but when the chatgpt report is requested it is immediately written into the Github action step summary. This creates a discrepancy between the GHA report and the file report.

To have the same content in the GHA step summary and report file, I've used a temporary file /tmp/report_openai.md where the openai report is written. Right after that, the content of the /tmp/report_output.md file is also appended.
At the end, the file will be renamed with the much more generic /tmp/report_output.md and consequently written directly into the $GITHUB_STEP_SUMMARY.

@poiana
Copy link

poiana commented Dec 11, 2024

LGTM label has been added.

Git tree hash: 7494b1d1fcf945f1f174001619f5a4f0b437b24a

@loresuso
Copy link
Member

/lgtm

@poiana
Copy link

poiana commented Dec 11, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AlbertoPellitteri, loresuso

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 3950d6e into falcosecurity:main Dec 11, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants