Skip to content

chore: Skip DevContainer workflow in forks - #5909

Merged
Osip Fatkullin (osipxd) merged 1 commit into
ktorio:mainfrom
IRus:chore/devcontainer-skip-forks
Sep 28, 2026
Merged

Osip Fatkullin (osipxd) merged 1 commit into
ktorio:mainfrom
IRus:chore/devcontainer-skip-forks

Conversation

@IRus

@IRus Ruslan Ibrahimau (IRus) commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Subsystem
Infrastructure, CI

Motivation
The workflow pushes the image to ghcr.io/ktorio/devcontainer, which forks cannot write to. The weekly schedule and pushes to main in a fork always fail with "permission_denied".

Example of the scheduled workflow failing in my fork: https://github.com/IRus/ktor/actions/runs/36213410608

Workaround: gh workflow disable DevContainer -R IRus/ktor

Solution
Run the job only when github.repository == 'ktorio/ktor'

The workflow pushes the image to ghcr.io/ktorio/devcontainer, which forks
cannot write to. The weekly schedule and pushes to main in a fork always
fail with "permission_denied".

@osipxd Osip Fatkullin (osipxd) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@osipxd
Osip Fatkullin (osipxd) merged commit 42f1262 into ktorio:main Sep 28, 2026
22 checks passed
@IRus
Ruslan Ibrahimau (IRus) deleted the chore/devcontainer-skip-forks branch September 28, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants