Skip to content

Document that pull_request can upload SARIF without security-events: write #47120

Backlog

Description

@jsoref

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/code-security/reference/code-scanning/workflow-configuration-options

What part(s) of the article would you like to see updated?

Who can use this feature?
Users with write access if advanced setup is already enabled

To mention that pull_requests magically have security-events: write or something functionally equivalent to it.

Additional information

https://docs.github.com/en/code-security/reference/code-scanning/troubleshoot-analysis-errors/resource-not-accessible#confirming-the-cause-of-the-error

Confirming the cause of the error
If you're using Dependabot in your code scanning workflow, investigate the scope it's using.

Uploading code scanning results for a branch usually requires the security-events: write scope. However, code scanning always allows the uploading of results when the pull_request event triggers the action run. This is why, for Dependabot branches, we recommend you use the pull_request event instead of the push event.


Hallucinations follow:

Activity

  1. added
    content
    on Nov 30, 2026
  2. added
    triage
    on Nov 30, 2026
  3. changed the title [-]Workflow configuration options for code scanning should mention that `pull_request` magically gets something like `security-events: write`[/-] [+]Document that `pull_request` can upload SARIF without `security-events: write`[/+] on Nov 30, 2026
  4. added
    rest
    and removed
    triage
    rest
    on Nov 30, 2026
  5. github-actions commented on Nov 30, 2026

    @github-actions
    Contributor

    Thanks for your submission, @jsoref! We've marked this for review by the appropriate team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentdriver persona

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions