32
41
Fork
You've already forked website
52

docs: Document the (subtle) differences between GitHub and Forgejo Actions #307

Closed
opened 2023年07月21日 11:42:48 +02:00 by n0toose · 2 comments
Member
Copy link

We probably should use this thread to document these things too.

We probably should use this thread to document these things too.
Contributor
Copy link

Differences I encountered, and recommendations I'd make to users encountering them:

  • Different default namespace.
    • Recommendation: Point to full URIs, unless it's one of the "common" actions. (Not sure whether GitHub accepts full URIs there; if so, maybe offer workaround).
  • Some of the common actions (in GitHub's and Forgejo's "actions" group) are missing. For example, actions/upload-artifact is unavailable. (Is that because there are no artifacts on Codeberg / because they work differently?)
    • Recommendation: Unclear. Maybe at the time this is declared stable, the common actions will be replicated (or, when inapplicable, possibly replaced with a shim action that, in the favor of workflows being reusable across platforms, just warns or prints an error that this doesn't work).
  • The token made available inside the action is read-only (whereas GitHub's is read-write by default, with extra API access for closing issues and such)
    • Recommendation: Use SSH deploy keys with write permissions. Setting them up is not trivial (especially if the action goes around cloning into and pushing from different docker images); I plan to make my setup into an action.
      Alternatively, wait for scoped tokens, or even configurable scope for the one already passed in (see forgejo/forgejo#1082).
Differences I encountered, and recommendations I'd make to users encountering them: * Different default namespace. * Recommendation: Point to full URIs, unless it's one of the "common" actions. (Not sure whether GitHub accepts full URIs there; if so, maybe offer workaround). * Some of the common actions (in GitHub's and Forgejo's "actions" group) are missing. For example, actions/upload-artifact is unavailable. (Is that because there are no artifacts on Codeberg / because they work differently?) * Recommendation: Unclear. Maybe at the time this is declared stable, the common actions will be replicated (or, when inapplicable, possibly replaced with a shim action that, in the favor of workflows being reusable across platforms, just warns or prints an error that this doesn't work). * The token made available inside the action is read-only (whereas GitHub's is read-write by default, with extra API access for closing issues and such) * Recommendation: Use SSH deploy keys with write permissions. Setting them up is not trivial (especially if the action goes around cloning into and pushing from different docker images); I plan to make my setup into an action. Alternatively, wait for scoped tokens, or even configurable scope for the one already passed in (see https://codeberg.org/forgejo/forgejo/issues/1082).
That is implemented now: https://forgejo.org/docs/latest/user/actions/github-actions/
Sign in to join this conversation.
No Branch/Tag specified
main
monthly-2026-05
mahlzahn-eslint-js
preview-link-status
nightfire
2022年12月14日-main
No results found.
Labels
Clear labels
404
Broken links or missing content
Accessibility
Accessibility
Blog post
Documentation
Forgejo Documentation
Internationalisation
i18n and l10n
User research - Accessibility
Requires input about accessibility features, likely involves user testing.
User research - Blocked
Do not pick as-is! We are happy if you can help, but please coordinate with ongoing redesign in this area.
User research - Community
Community features, such as discovering other people's work or otherwise feeling welcome on a Forgejo instance.
User research - Config (instance)
Instance-wide configuration, authentication and other admin-only needs.
User research - Errors
How to deal with errors in the application and write helpful error messages.
User research - Filters
How filter and search is being worked with.
User research - Future backlog
The issue might be inspiring for future design work.
User research - Git workflow
AGit, fork-based and new Git workflow, PR creation etc
User research - Labels
Active research about Labels
User research - Moderation
Moderation Featuers for Admins are undergoing active User Research
User research - Needs input
Use this label to let the User Research team know their input is requested.
User research - Notifications/Dashboard
Research on how users should know what to do next.
User research - Rendering
Text rendering, markup languages etc
User research - Repo creation
Active research about the New Repo dialog.
User research - Repo units
The repo sections, disabling them and the "Add more" button.
User research - Security
User research - Settings (in-app)
How to structure in-app settings in the future?
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
forgejo/website#307
Reference in a new issue
forgejo/website
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?