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

feauture: upgrade job.py to results v2 format by default and expose h… #626

Closed

Conversation

kikomiss
Copy link
Contributor

…istogram/shots methods

histogram_key = "(0, 0)" if "(0, 0)" in results_histogram else "(1, 1)"

self.assertIsNotNone(results_histogram[histogram_key])
self.assertEqual(results_histogram[histogram_key]["outcome"], eval(histogram_key))

Check notice

Code scanning / devskim

If untrusted data (data from HTTP requests, user submitted files, etc.) is included in an eval statement it can allow an attacker to inject their own code. Note test

Review eval for untrusted data
@kikomiss kikomiss closed this Jul 23, 2024
@kikomiss kikomiss deleted the users/kikomiss/feature/output-translator-raw-data branch July 23, 2024 03:39
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.

1 participant