Skip to content

Bandit and SonarQube action runs on forks #1342

@marcus-oscarsson

Description

@marcus-oscarsson

It turns out that the current if statement in the Bandit and SonarQube action does not prevent the execution of the workflow on forks for instance on simple push events.

See: https://github.com/rhfogh/mxcubecore/actions/runs/16672531426/workflow#L61

The easiest fix would probably be to do the following:

if: github.repository == 'mxcube/mxcubecore'

The current check only checks if the PR is from the same repository but not that its from the "canonical" mxcubecore repository. There does not seem to be a way of checking that without hard coding the name like above (at least as far as I could see).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions