can you add 'affected branches' to the secret scanning alert notices #143576
Replies: 2 comments
-
Hello Joe, I completely agree that having the 'affected branches' information available in the Secret and Dependabot alert notices, similar to what is provided in CodeQL alerts, would be incredibly useful. This feature would indeed allow for better filtering and prioritizing fixes, especially when dealing with shipping versus non-shipping or experimental branches. Additionally, making this information accessible through the alerts API would greatly enhance automation capabilities for managing and addressing these alerts across different branches. Here's an example of how you might use the affected_branches information in a script: python Replace with your actual GitHub tokenGITHUB_TOKEN = 'your_github_token' headers = { Example API endpoint to get alerts (this may vary based on your needs)api_url = f'https://api.github.com/repos/{REPO_OWNER}/{REPO_NAME}/code-scanning/alerts' response = requests.get(api_url, headers=headers) if response.status_code == 200: Best regards |
Beta Was this translation helpful? Give feedback.
-
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
On the Secrets and Dependabot tabs in the Security page, it would be helpful if you could add the 'affected branches' information you have in the codeql alerts to those types of alerts as well. Ideally this information would also be gettable from the alerts API. This would allow us to better filter fixes for alerts that are in shipping branches vs those in non-shipping or experimental branches.
Beta Was this translation helpful? Give feedback.
All reactions