Cannot see results or health status of the tool on Security tab #61263
Unanswered
omar-gft
asked this question in
Enterprise
Replies: 1 comment 8 replies
-
This is the expected behaviour. The tool status page will only show data for the default branch and not for pull requests. Generally, people not only trigger scans on pull requests, but also on the default branch when something is pushed to it. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
Hi All,
So I am working on a private repo (that has GitHub Advanced Security Enterprise) for CodeQL. This repos structure is a monorepo, it represents our backend microservices - every directory in the repo is its own microservice and they are all independent of each other.
The CI workflow that is triggered on every PR raised to our main branch runs the following steps (we integrated our codeql steps into our existing CI workflow)
` # Add the CodeQL init step right after the checkout
uses: github/codeql-action/init@v2
with:
languages: 'java' `
`# Build with Gradle
run: |
cd ${{env.WORKDIR}}
chmod +x ./gradlew
./gradlew clean build
mkdir staging && cp build/libs/*.jar staging
`
`# Add the CodeQL analysis step after the build
uses: github/codeql-action/analyze@v2
with:
category: "/language:java"`
the issue here is that the workflows has been running fine (codeql steps passing) as our developers have been merging PR's to our main branch etc. however, my issue is that when we come to view the code scanning alerts page within the repos security tab i see the following.
I see Configured tools are not scanning the default branch.
indicating something has not been setup correctly, yet when i go to the settings of the repo and see codeql is setup and it is able to state the most recent scan that took place. We do not have any code alerts, however, our other repos with the same setup (they are not monorepos however) are able to display the message that "All tools are working as expected" including some stats for how many lines of code have been extracted and scanned.
Please advise, thanks (:
Beta Was this translation helpful? Give feedback.
All reactions