ESCOMP / ESCOMP/CAM

Modify branch-push Github Action to fully prevent runs on forks

Open
#395 0 comments 0 reactions 0 assignees View on GitHub
bug Github action
Dominant language
No language data
Stars
91
Forks
183
Avg merge
6d 2m
Merged PRs (30d)
9

Description

Currently the "branch push" Github Action workflow (`branch_push_workflow.yml`) will still attempt to set-up a virtual machine and run a job when triggered on a fork, even though the job is a no-op. This can be prevented by moving the line:

`if: github.repository == 'ESCOMP/CAM'`

from the multiple locations it is currently to right below the job name instead, i.e.:

```
issue_closer:
if: github.repository == 'ESCOMP/CAM'
```

This will ensure that this particular job is skipped entirely when a user pushes to a fork of the ESCOMP/CAM repo, and instead should only trigger via a push (e.g. from a merged PR) to ESCOMP/CAM itself.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.