Skip to content

Disable beta-release + snyk workflows on Github forks #8662

@joffeoja

Description

@joffeoja
Image

Before submitting your bug report

Relevant environment info

- OS:
- Continue version:
- IDE version:
- Model:
- config:
  

  
  OR link to agent in Continue hub:

Description

When forking https://github.com/continuedev/continue you get daily/weekly/monthly notifications that some workflows have failed:

  • Daily Snyk Agent workflow run (snyk-agent)
  • Weekly CN Task workflow run (snyk-agent)
  • Monthly issue metrics workflow run (metrics)
  • Beta Release workflow run (beta-release)
  • Stable Release workflow run (stable-release)

Maybe there is a Global setting to avoid this but since they are probably only meant for the main repo it should be easy to fix using either of these settings in the respective workflow configs:

jobs:
  beta-release:
    name: Beta Release
    if: github.event.repository.fork == false
    runs-on: ubuntu-latest
jobs:
  beta-release:
    name: Beta Release
    if: github.repository_owner == 'YOUR_ORG_OR_USERNAME'
    runs-on: ubuntu-latest

To reproduce

No response

Log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:configurationRelates to configuration optionsgithub_actionsPull requests that update GitHub Actions code

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions