You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This is required to avoid scan results to be overridden by other types of workflows (e.g., maintenance release)
105
-
# See https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning#uploading-more-than-one-sarif-file-for-a-commit
106
-
category: ${{ github.workflow }}
104
+
# Use a fixed category to ensure consistent configuration across all SARIF uploads.
105
+
#
106
+
# This prevents the GitHub warning: "Code scanning cannot determine the alerts introduced by this pull request,
107
+
# because 1 configuration present on refs/heads/main was not found".
108
+
# The warning occurs when different workflows use different categories for SARIF files on the same branch.
109
+
#
110
+
# Using a single, consistent category (e.g., 'trivy') ensures all uploads are correctly associated.
0 commit comments