SHA256
1
0
forked from pool/forgejo

88 Commits

Author SHA256 Message Date
c2e37c8d7f Accepting request 1321397 from devel:tools:scm
- Update to version 13.0.3:
  * fix dependency repo perms in Create/RemoveIssueDependency
  * draft releases could be read before being published
  * misconfigured security checks on tag delete web form
  * incorrect logic in "Update PR" did not enforce head branch protection rules
    correctly
  * issue owner can delete another user's comment's edit history on same issue
  * tag protection rules can be bypassed during tag delete operation
  * fix: support git clone when /tmp has noexec
  * fix: get new session from enginegroup instead of masterengine
  * fix: endless redirection loop between /user/settings/change_password and
    /user/settings/security
  * fix(alt): handle package names with dots in ALT repository
  * fix: pull request review comment position
  * fix: less restrictive matrix room_id pattern
  * fix: add required headers to Pagure migration
  * fix: prevent orgs from being added as members of orgs
  * fix(api): set all hook event types
  * fix: don't show ConEmu OSC escape sequences
  * fix: set tag message on tag addition
  * fix: construct project links in timeline better
- remove patches fix-CVE-2025-47911.patch and fix-CVE-2025-58190.patch,
  fixed upstream (forwarded request 1321396 from rrahl0)

OBS-URL: https://build.opensuse.org/request/show/1321397
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=39
2025-12-08 10:55:03 +00:00
Richard Rahl
da1403f5da - Update to version 13.0.3:
* fix dependency repo perms in Create/RemoveIssueDependency
  * draft releases could be read before being published
  * misconfigured security checks on tag delete web form
  * incorrect logic in "Update PR" did not enforce head branch protection rules
    correctly
  * issue owner can delete another user's comment's edit history on same issue
  * tag protection rules can be bypassed during tag delete operation
  * fix: support git clone when /tmp has noexec
  * fix: get new session from enginegroup instead of masterengine
  * fix: endless redirection loop between /user/settings/change_password and
    /user/settings/security
  * fix(alt): handle package names with dots in ALT repository
  * fix: pull request review comment position
  * fix: less restrictive matrix room_id pattern
  * fix: add required headers to Pagure migration
  * fix: prevent orgs from being added as members of orgs
  * fix(api): set all hook event types
  * fix: don't show ConEmu OSC escape sequences
  * fix: set tag message on tag addition
  * fix: construct project links in timeline better
- remove patches fix-CVE-2025-47911.patch and fix-CVE-2025-58190.patch,
  fixed upstream

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=88
2025-12-06 21:46:05 +00:00
748abe04d6 Accepting request 1313899 from devel:tools:scm
- Update to version 13.0.2:
  * Vulnerability (Critical): prevent writing to out-of-repo symlink
    destinations while evaluating template repos
  * Vulnerability (Medium): prevent .forgejo/template from being out-of-repo
    content
  * Vulnerability (Medium): return on error if an LFS token cannot be parsed
  * Vulnerability (Low): prevent commit API from leaking user's hidden email
    address on valid GPG signed commits (forwarded request 1313898 from rrahl0)

OBS-URL: https://build.opensuse.org/request/show/1313899
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=38
2025-10-28 13:46:45 +00:00
Richard Rahl
c074864c8e - Update to version 13.0.2:
* Vulnerability (Critical): prevent writing to out-of-repo symlink
    destinations while evaluating template repos
  * Vulnerability (Medium): prevent .forgejo/template from being out-of-repo
    content
  * Vulnerability (Medium): return on error if an LFS token cannot be parsed
  * Vulnerability (Low): prevent commit API from leaking user's hidden email
    address on valid GPG signed commits

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=86
2025-10-27 16:33:53 +00:00
8f0bcad720 Accepting request 1312210 from devel:tools:scm
- Update to version 13.0.1:
User Interface bug fixes:
  * fix: Use scrollHeight for rendered iframe if offsetHeight is
    unavailable
Bug fixes:
  * fix: db.Iterate can miss records, can return records twice
    which caused a data corruption of the secret table in v13.0.0
  * fix: release email links
- Changes in 13.0.0:
Security features:
  * Add configurable global 2FA enforcement
  * migrate action secrets to keying to store them more securely
Breaking features:
  * bump the minimum required Git version from 2.0.0 to 2.34.1
  * Forgejo Actions workflows are verified with a YAML schema and
    common errors such as using an incorrect context
    (e.g. ${{ badcontext.FORGEJO_REPOSITORY }}) or a typo in a
    required keyword (e.g. ruins-on: instead of runs-on:) will be
    reported in the action page and the web page that displays the
    file in the repository. It is recommended to verify existing
    workflows are successfully verified prior to upgrading,
    as explained in the Forgejo runner release notes.
Breaking bug fixes:
  * The artifact-url ouput returned by the upload-artifact@v4
    action can be used to download the artifact. It was previously
    404. To implement this compatibility fix, the web UI URL to
    download artifacts
    (i.e. /{owner}/{repo}/actions/runs/{run_id}/artifacts/{artifact_name})
    now relies on an identifier that is unique accross the
    instance. URLs to download artifacts that were bookmarked or
    copied prior to this change use an id relative to the
    repository and will no longer work. It previously was
    /{owner}/{repo}/actions/runs/{run_index}/artifacts/{artifact_name},
    note the difference between {run_id} and {run_index}.
    The new URL can be obtained again by visiting the parent page,
    which still uses the relative id
    (/{owner}/{repo}/actions/runs/{run_index}).
User Interface features:
  * ability to view previous logs for Actions runs that have been
    retried
  * show CI status on force-pushes
  * improve org header with new noJS dropdown and more
    options
  * improve multiline file preview and anchor detection
  * render ordered checkbox lists with numbers
  * Admin interface for abuse reports
  * show timestamp on release attachments
  * add tag label to commit list view
  * support Markdown editor bold & italic keyboard shortcuts
  * improve rendering commit links for PR commits,
    external repos and diffs
  * add links to assigners in issue comments
  * use simplified visibility label in dashboard orgs
    list
  * improve custom emojis
  * improve the global noJS notice
  * improve display of repo topics
  * add links to review request targets in issue comments
  * improve subscriptions screen filters
  * implement hover for switch
  * Pretty-print commit counts and other numbers
User Interface bug fixes:
  * add markup class to project descriptions
  * make releases filtering responsive
  * reworked file preview placement towards better HTML validity
  * fix alignment of items in tag signature
  * unescape file names in commit hash links
  * visually distinguish the branch name in action description
  * preserved 'Custom access' even after no permissions
  * show participants in mention suggestions in pr review
  * apply background color to wiki content
  * improve signature box responsiveness
  * ignore existence of commits for force pushes
  * make unicode escape work in wiki
  * prevent initial 'blank' display of action logs view,
    remove unnecessary API calls
  * don't allow comment boxes to stretch outside diff boundries
    on small device UI
  * hide edit button on tag releases, improve ghost user display,
    fix tag signature banner
  * resolved 500 error upon clicking 'Clear milestone' button when
    there's no milestones available in Issue page
  * compare branches even with pull requests disabled
Features:
  * Uploaded avatar images can sometimes contain unexpected
    metadata such as the location where the image was created,
    or the device the image was created with, stored in a format
    called EXIF. Forgejo now removes EXIF data when custom user and
    repository images are uploaded in order to reduce the risk of
    personally identifiable information being leaked unexpectedly.
    A new CLI subcommand forgejo doctor avatar-strip-exif can be
    used to strip EXIF information from all existing avatars; we
    recommend that administrators run this command once after
    upgrade in order to minimize this risk for existing stored
    files.
  * assorted ActivityPub code only refactors
  * feat(logger): rename settings for consistency and remove
    obsolete settings
  * Bring "remove a label from issue" API in line with GitHub
    equivalent
  * reject password reset attempts for OAuth2 users without a
    current password
  * feat(log): better parseable and configurable ssh-logs
  * add configurable timeout for automatically removing resolved
    reports
  * Add support for migrating from Pagure
  * add _URI entries for mail config
  * Improved signature handling & instance actor
  * Sent user activities to distant federated server
  * Add ActivityPub Person follow from distant
  * chore: remove goroutine PID logging
  * git/blob: GetContentBase64 with fewer allocations and no
    goroutine
  * make API pull and compare endpoint references to head more
    robust
  * git/commit: re-implement submodules file reader
  * add EXCLUSION to logging mode
  * add sort parameter for users/search api endpoint
  * Allow converting mirror repos to normal through the API
  * update broken git hook error
  * avoid expensive SQL for org home
  * make upload URL compatible with GitHub API
  * allow more README formats for .profile
  * AGit push options starting with {base64} are decoded
  * search in the docs directory for issue and pull request
    templates
  * improve checking if diffs differ
  * enable H2C for the HTTP server
  * detect Interlisp sources as text
  * add option to allow non-local users to change usernames
  * chroma: 5d56970 Add uv.lock to TOML lexer
  * chroma: a53c924 create Lexer for Nu
  * chroma: abe0195 create lexer for lox
  * chroma: f3be4c6 create lexer for Gemtext
  * chroma: acd21c6 add aspect-ratio property to css.xml
  * chroma: d0ad679 improve Go lexer
  * Introduce global Merge Message Templates
  * chroma: 970eacc add MoonScript lexer
  * chroma: bc60826 add Core lexer
  * push mirror to have option to only push selected branches
  * if OAuth2 is disabled return 'Not found' for openid
    configuration
  * add --attribute-ssh-pubic-key to forgejo admin auth add-oauth
    and update-oauth CLI
  * feat(ui): add repository description to og:image:alt
Bug fixes:
  * quota evaluation rules not working properly
  * artifacts can be downloaded using their id instead of their
    name
  * fix: failure to parse on block results in unconditional
    workflow execution
  * Fix invisible iframes with RENDER_CONTENT_MODE=iframe
  * fix: package cleaned rule fails if the keep count is too high
  * prevent user-entered text with | characters from being
    truncated in activity feed
  * PR review dismissals were not appearing in activity feed
  * comment starting with a mermaid block displays error in
    activity feed
  * Markdown: generate unique per comment HTML IDs for footnotes
    and headers
  * very long commit messages cause pushed commits to fail to
    display on the action feed on MySQL
  * parse extra weird tree mode value
  * respect UI DEFAULT_SHOW_FULL_NAME setting in email
    From: headers
  * check target repo limit instead of user repo limit
  * enable multi-line math equations in wiki
  * Actions log view stops refreshing after the displayed job is
    finished, even if other jobs are still running
  * standardize truncation of user-entered comment text in
    activity feed
  * allow Actions tokens to access repos readable by signed in
    users
  * allow Forgejo Actions environment variables starting with CI
  * chroma: 1ca24c9 correct lexing AS keyword for docker
  * chroma: 1f48e65 markdown: don't delegate to HTML lexer
  * chroma: dfb2819 Fixed ObjectPascal comment issue
  * chroma: 2c20473 RPGLE: various lexer & style fixes
  * chroma: c803d79 zig: detect zig object notation files as zig
  * chroma: ffedbf4 kotlin: detect kotlin script files as kotlin (forwarded request 1312199 from mia)

OBS-URL: https://build.opensuse.org/request/show/1312210
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=37
2025-10-20 11:35:18 +00:00
Richard Rahl
60a25c5030 - Update to version 13.0.1:
User Interface bug fixes:
  * fix: Use scrollHeight for rendered iframe if offsetHeight is
    unavailable
Bug fixes:
  * fix: db.Iterate can miss records, can return records twice
    which caused a data corruption of the secret table in v13.0.0
  * fix: release email links
- Changes in 13.0.0:
Security features:
  * Add configurable global 2FA enforcement
  * migrate action secrets to keying to store them more securely
Breaking features:
  * bump the minimum required Git version from 2.0.0 to 2.34.1
  * Forgejo Actions workflows are verified with a YAML schema and
    common errors such as using an incorrect context
    (e.g. ${{ badcontext.FORGEJO_REPOSITORY }}) or a typo in a
    required keyword (e.g. ruins-on: instead of runs-on:) will be
    reported in the action page and the web page that displays the
    file in the repository. It is recommended to verify existing
    workflows are successfully verified prior to upgrading,
    as explained in the Forgejo runner release notes.
Breaking bug fixes:
  * The artifact-url ouput returned by the upload-artifact@v4
    action can be used to download the artifact. It was previously
    404. To implement this compatibility fix, the web UI URL to
    download artifacts
    (i.e. /{owner}/{repo}/actions/runs/{run_id}/artifacts/{artifact_name})
    now relies on an identifier that is unique accross the
    instance. URLs to download artifacts that were bookmarked or
    copied prior to this change use an id relative to the
    repository and will no longer work. It previously was
    /{owner}/{repo}/actions/runs/{run_index}/artifacts/{artifact_name},
    note the difference between {run_id} and {run_index}.
    The new URL can be obtained again by visiting the parent page,
    which still uses the relative id
    (/{owner}/{repo}/actions/runs/{run_index}).
User Interface features:
  * ability to view previous logs for Actions runs that have been
    retried
  * show CI status on force-pushes
  * improve org header with new noJS dropdown and more
    options
  * improve multiline file preview and anchor detection
  * render ordered checkbox lists with numbers
  * Admin interface for abuse reports
  * show timestamp on release attachments
  * add tag label to commit list view
  * support Markdown editor bold & italic keyboard shortcuts
  * improve rendering commit links for PR commits,
    external repos and diffs
  * add links to assigners in issue comments
  * use simplified visibility label in dashboard orgs
    list
  * improve custom emojis
  * improve the global noJS notice
  * improve display of repo topics
  * add links to review request targets in issue comments
  * improve subscriptions screen filters
  * implement hover for switch
  * Pretty-print commit counts and other numbers
User Interface bug fixes:
  * add markup class to project descriptions
  * make releases filtering responsive
  * reworked file preview placement towards better HTML validity
  * fix alignment of items in tag signature
  * unescape file names in commit hash links
  * visually distinguish the branch name in action description
  * preserved 'Custom access' even after no permissions
  * show participants in mention suggestions in pr review
  * apply background color to wiki content
  * improve signature box responsiveness
  * ignore existence of commits for force pushes
  * make unicode escape work in wiki
  * prevent initial 'blank' display of action logs view,
    remove unnecessary API calls
  * don't allow comment boxes to stretch outside diff boundries
    on small device UI
  * hide edit button on tag releases, improve ghost user display,
    fix tag signature banner
  * resolved 500 error upon clicking 'Clear milestone' button when
    there's no milestones available in Issue page
  * compare branches even with pull requests disabled
Features:
  * Uploaded avatar images can sometimes contain unexpected
    metadata such as the location where the image was created,
    or the device the image was created with, stored in a format
    called EXIF. Forgejo now removes EXIF data when custom user and
    repository images are uploaded in order to reduce the risk of
    personally identifiable information being leaked unexpectedly.
    A new CLI subcommand forgejo doctor avatar-strip-exif can be
    used to strip EXIF information from all existing avatars; we
    recommend that administrators run this command once after
    upgrade in order to minimize this risk for existing stored
    files.
  * assorted ActivityPub code only refactors
  * feat(logger): rename settings for consistency and remove
    obsolete settings
  * Bring "remove a label from issue" API in line with GitHub
    equivalent
  * reject password reset attempts for OAuth2 users without a
    current password
  * feat(log): better parseable and configurable ssh-logs
  * add configurable timeout for automatically removing resolved
    reports
  * Add support for migrating from Pagure
  * add _URI entries for mail config
  * Improved signature handling & instance actor
  * Sent user activities to distant federated server
  * Add ActivityPub Person follow from distant
  * chore: remove goroutine PID logging
  * git/blob: GetContentBase64 with fewer allocations and no
    goroutine
  * make API pull and compare endpoint references to head more
    robust
  * git/commit: re-implement submodules file reader
  * add EXCLUSION to logging mode
  * add sort parameter for users/search api endpoint
  * Allow converting mirror repos to normal through the API
  * update broken git hook error
  * avoid expensive SQL for org home
  * make upload URL compatible with GitHub API
  * allow more README formats for .profile
  * AGit push options starting with {base64} are decoded
  * search in the docs directory for issue and pull request
    templates
  * improve checking if diffs differ
  * enable H2C for the HTTP server
  * detect Interlisp sources as text
  * add option to allow non-local users to change usernames
  * chroma: 5d56970 Add uv.lock to TOML lexer
  * chroma: a53c924 create Lexer for Nu
  * chroma: abe0195 create lexer for lox
  * chroma: f3be4c6 create lexer for Gemtext
  * chroma: acd21c6 add aspect-ratio property to css.xml
  * chroma: d0ad679 improve Go lexer
  * Introduce global Merge Message Templates
  * chroma: 970eacc add MoonScript lexer
  * chroma: bc60826 add Core lexer
  * push mirror to have option to only push selected branches
  * if OAuth2 is disabled return 'Not found' for openid
    configuration
  * add --attribute-ssh-pubic-key to forgejo admin auth add-oauth
    and update-oauth CLI
  * feat(ui): add repository description to og:image:alt
Bug fixes:
  * quota evaluation rules not working properly
  * artifacts can be downloaded using their id instead of their
    name
  * fix: failure to parse on block results in unconditional
    workflow execution
  * Fix invisible iframes with RENDER_CONTENT_MODE=iframe
  * fix: package cleaned rule fails if the keep count is too high
  * prevent user-entered text with | characters from being
    truncated in activity feed
  * PR review dismissals were not appearing in activity feed
  * comment starting with a mermaid block displays error in
    activity feed
  * Markdown: generate unique per comment HTML IDs for footnotes
    and headers
  * very long commit messages cause pushed commits to fail to
    display on the action feed on MySQL
  * parse extra weird tree mode value
  * respect UI DEFAULT_SHOW_FULL_NAME setting in email
    From: headers
  * check target repo limit instead of user repo limit
  * enable multi-line math equations in wiki
  * Actions log view stops refreshing after the displayed job is
    finished, even if other jobs are still running
  * standardize truncation of user-entered comment text in
    activity feed
  * allow Actions tokens to access repos readable by signed in
    users
  * allow Forgejo Actions environment variables starting with CI
  * chroma: 1ca24c9 correct lexing AS keyword for docker
  * chroma: 1f48e65 markdown: don't delegate to HTML lexer
  * chroma: dfb2819 Fixed ObjectPascal comment issue
  * chroma: 2c20473 RPGLE: various lexer & style fixes
  * chroma: c803d79 zig: detect zig object notation files as zig
  * chroma: ffedbf4 kotlin: detect kotlin script files as kotlin

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=84
2025-10-19 10:49:18 +00:00
233a676cd9 Accepting request 1309957 from devel:tools:scm
OBS-URL: https://build.opensuse.org/request/show/1309957
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=36
2025-10-09 13:07:08 +00:00
Richard Rahl
9ac0b689b5 - add fix-CVE-2025-58190.patch, fixing bsc#1251670
- add fix-CVE-2025-47911.patch, fixing bsc#1251474

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=82
2025-10-09 10:37:57 +00:00
6f5f1b7e2e Accepting request 1306120 from devel:tools:scm
- update to version 12.0.4:
  * Do not display the title of unsubscribed issues or pull requests in the
    notification web page
  * fix: package cleanup rules are not applied when there are more than 200
    packages
  * fix: [quota.default].TOTAL config setting supports unit suffixes
  * fix: quotas double counting repo size when calculating size:all
  * fix: LFS GC is never running because of a bug in the parsing of the INI file
  * fix(api): set default pagination and Link header for repoListTags
  * chore: build-release must close the cascading pull request

- update to version 12.0.3:
  * Update dependency mermaid to v11.10.0 [SECURITY]
  * fix(ui): clear fields when canceling adding ssh key
  * fix(api): deactivate issue api for disabled or external issue-tracker
  * fix: migration failing when importing either issues or PRs but not the other
  * fix: do better parsing of file modes
  * Update module github.com/ulikunitz/xz to v0.5.15
- update to version 12.0.2:
  * fix: email comments are removed from email addresses
  * fix: validate CSRF on non-safe methods All PUT/DELETE
  * fix: use credential helpers for git clones When performing a git clone that
    requires credentials
  * fix: consistently enforce 2FA on OpenID 2.0
  * fix: delete old auth token upon replacing primary email When the primary
    email is changed before it is validated
  * fix: require password login for creation of new token
  * fix: ensure GetUserByEmail only considers validated emails
  * fix: don't allow credentials in migrate/push mirror URL
  * fix: only redirect to a new owner (organization or user) if the user has (forwarded request 1306119 from rrahl0)

OBS-URL: https://build.opensuse.org/request/show/1306120
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=35
2025-09-20 20:04:42 +00:00
Richard Rahl
b20f3ac7f1 - update to version 12.0.4:
* Do not display the title of unsubscribed issues or pull requests in the
    notification web page
  * fix: package cleanup rules are not applied when there are more than 200
    packages
  * fix: [quota.default].TOTAL config setting supports unit suffixes
  * fix: quotas double counting repo size when calculating size:all
  * fix: LFS GC is never running because of a bug in the parsing of the INI file
  * fix(api): set default pagination and Link header for repoListTags
  * chore: build-release must close the cascading pull request

- update to version 12.0.3:
  * Update dependency mermaid to v11.10.0 [SECURITY]
  * fix(ui): clear fields when canceling adding ssh key
  * fix(api): deactivate issue api for disabled or external issue-tracker
  * fix: migration failing when importing either issues or PRs but not the other
  * fix: do better parsing of file modes
  * Update module github.com/ulikunitz/xz to v0.5.15
- update to version 12.0.2:
  * fix: email comments are removed from email addresses
  * fix: validate CSRF on non-safe methods All PUT/DELETE
  * fix: use credential helpers for git clones When performing a git clone that
    requires credentials
  * fix: consistently enforce 2FA on OpenID 2.0
  * fix: delete old auth token upon replacing primary email When the primary
    email is changed before it is validated
  * fix: require password login for creation of new token
  * fix: ensure GetUserByEmail only considers validated emails
  * fix: don't allow credentials in migrate/push mirror URL
  * fix: only redirect to a new owner (organization or user) if the user has

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=80
2025-09-20 11:35:09 +00:00
ee94cbde88 Accepting request 1295901 from devel:tools:scm
- update to version 12.0.1:
  * allow for tracked time to be removed again
  * correct image source for quoted reply
  * prevent render failure on faulty org settings post
  * Revert "remove API authentication methods that uses the URL query"
  * upgrade fails or hang at migration[31]: Migrate maven package
    name concatenation
  * make the action feed resilient to database inconsistencies
  * make sure to use unaltered fields when saving a shadow copy
    for updated profiles or comments
  * follow symlinks for local assets
  * use correct ACME default
- remove get-sources.sh, use obs tooling
- include apparmor in Leap 16

- update to version 12.0.0:
  * remove API authentication methods that uses the URL query
  * relax email requirements
  * consider WebAuthn & SSH for instance signing
  * add SSH signing support for instances
  * forgejo docs command is deprecated
  * remove the legacy TEST_CONFLICTING_PATCHES_WITH_GIT_APPLY setting
  * fail if sha is not provided to the POST
    /repos/{owner}/{repo}/contents API endpoint
  * transform fediverse handles
  * add user visibility description in the settings page
  * add model viewer for .glb (GLTF) model in file view
  * show size constraints of custom avatar
  * add links to milestones and projects in issue comments
  * global styling for the kbd tag (forwarded request 1295900 from rrahl0)

OBS-URL: https://build.opensuse.org/request/show/1295901
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=34
2025-07-27 14:26:39 +00:00
Richard Rahl
9f3fd4dfb2 - update to version 12.0.1:
* allow for tracked time to be removed again
  * correct image source for quoted reply
  * prevent render failure on faulty org settings post
  * Revert "remove API authentication methods that uses the URL query"
  * upgrade fails or hang at migration[31]: Migrate maven package
    name concatenation
  * make the action feed resilient to database inconsistencies
  * make sure to use unaltered fields when saving a shadow copy
    for updated profiles or comments
  * follow symlinks for local assets
  * use correct ACME default
- remove get-sources.sh, use obs tooling
- include apparmor in Leap 16

- update to version 12.0.0:
  * remove API authentication methods that uses the URL query
  * relax email requirements
  * consider WebAuthn & SSH for instance signing
  * add SSH signing support for instances
  * forgejo docs command is deprecated
  * remove the legacy TEST_CONFLICTING_PATCHES_WITH_GIT_APPLY setting
  * fail if sha is not provided to the POST
    /repos/{owner}/{repo}/contents API endpoint
  * transform fediverse handles
  * add user visibility description in the settings page
  * add model viewer for .glb (GLTF) model in file view
  * show size constraints of custom avatar
  * add links to milestones and projects in issue comments
  * global styling for the kbd tag

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=78
2025-07-26 15:45:26 +00:00
f774f8249c Accepting request 1291760 from devel:tools:scm
- update to 11.0.3:
  * fixing git security vulnerability
  * add missing lazy load attribute to images
  * backport of translation updates
  * do not ignore automerge while a PR is checking for conflicts
  * user activation with uppercase email address
  * collaborator can edit wiki with write access
  * fix: corrupted wiki unit default permission
  * fix: skip empty tokens in SearchOptions.Tokens()
  * fix: make API /repos/{owner}/{repo}/compare/{basehead} work with forks
  * fix(ui): release: name is overridden with tag name on edit
  * Revert "fix(api): document is_system_webhook field (forwarded request 1291759 from rrahl0)

OBS-URL: https://build.opensuse.org/request/show/1291760
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=33
2025-07-11 19:29:16 +00:00
Richard Rahl
c751cab79b - update to 11.0.3:
* fixing git security vulnerability
  * add missing lazy load attribute to images
  * backport of translation updates
  * do not ignore automerge while a PR is checking for conflicts
  * user activation with uppercase email address
  * collaborator can edit wiki with write access
  * fix: corrupted wiki unit default permission
  * fix: skip empty tokens in SearchOptions.Tokens()
  * fix: make API /repos/{owner}/{repo}/compare/{basehead} work with forks
  * fix(ui): release: name is overridden with tag name on edit
  * Revert "fix(api): document is_system_webhook field

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=76
2025-07-10 18:14:39 +00:00
8dde14ff9c Accepting request 1287177 from devel:tools:scm
OBS-URL: https://build.opensuse.org/request/show/1287177
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=32
2025-06-20 14:54:22 +00:00
Richard Rahl
76aa75785a - Update to 11.0.2:
* Features
    - make Forgejo Actions server logs less noisy
  * Bug fixes
    - do not fail when release or wiki is set in /repos/migrate API
    - ignore expired artifacts for quota calculation
    - pull request cross references
    - quote reply in Chromium
    - fix: make hash pattern more strict
  * Included for completeness but not worth a release note
    - remove download attribute from external assets
    - bleve to v2.5.2 with changes made in backport of 2.5.0
    - show membership of limited orgs
    - date dependency go to v1.24.3 (v11.0/forgejo)
    - drop unused @typescript-eslint/parser package
    - suppress non actionable XORM warnings
    - aggregate deleted team as ghost team
    - center footer links
    - fix force-push compare line layout
    - parse change-id in the git commit header
    - Update module github.com/blevesearch/bleve/v2 to v2.5.1 (v11.0/forgejo) - abandoned
    - improve force-push compare line layout
    - Remove "create branch" button on mirrored repos
    - Update module github.com/msteinert/pam/v2 to v2.1.0 (v11.0/forgejo)
    - replace ß with ss in normalizeUserName
    - document is_system_webhook field
    - remove artificial delay for PR update

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=74
2025-06-20 10:14:05 +00:00
37739cc52b Accepting request 1284786 from devel:tools:scm
- conflict all subpackages to forgejoi-longterm equivilent packages (forwarded request 1284784 from rrahl0)

OBS-URL: https://build.opensuse.org/request/show/1284786
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=31
2025-06-11 14:27:34 +00:00
Richard Rahl
4af0882634 - conflict all subpackages to forgejoi-longterm equivilent packages
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=72
2025-06-11 11:14:07 +00:00
0c4a675dbb Accepting request 1283946 from devel:tools:scm
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1283946
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=30
2025-06-10 07:06:02 +00:00
Richard Rahl
bfde83402f - apparmor: allow reading of new data files
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=70
2025-06-02 08:08:30 +00:00
Richard Rahl
3e2b7c0b57 - conflict with forgejo-longterm
- require apparmor profile when apparmor is installed
- use forgejo name rather than macro, sharing as much as possible with
  forgejo-longterm

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=69
2025-05-31 12:54:50 +00:00
74e360e79b Accepting request 1274877 from devel:tools:scm
- update to 11.0.1:
  * If LFS is enabled on a Forgejo instance with [server].LFS_START_SERVER =
    true, it was possible for a registered user to upload LFS files to a
    repository to which they only had read access.
  * A user account with 2fa (two factor authentication) enrolled with a
    security key was not enforced when using an external account
  * fix: display the list of tasks in the runner edit page
  * fix(ui): use gap in switch items
  * fix(ui/pr): use eye icon for reviews
  * fix(ui): rescope menu height patch to overflow menu
  * fix(ui): show commit icon in branch dropdown button when viewing a commit
  * i18n: backport of translation updates
  * fix(i18n): prevent incorrect logging on strings missing in JSON locales
  * chore: replace github.com/go-testfixtures/testfixtures
  * fix: use linguist-generated for language stats
  * chore: tune down remote user promotion debug message shown as error
  * fix: set default restricted for OAuth2 user
  * chore: merge tests.AddFixtures and unittest.OverrideFixtures
  * fix(ui): make pagination labels always visible to screenreader
  * fix: delay-write trace.dat for forgejo diagnosis
  * Update module github.com/mattn/go-sqlite3 to v1.14.28 (v11.0/forgejo) (forwarded request 1274876 from rrahl0)

OBS-URL: https://build.opensuse.org/request/show/1274877
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=29
2025-05-07 17:16:30 +00:00
Richard Rahl
f67ad385e4 - update to 11.0.1:
* If LFS is enabled on a Forgejo instance with [server].LFS_START_SERVER =
    true, it was possible for a registered user to upload LFS files to a
    repository to which they only had read access.
  * A user account with 2fa (two factor authentication) enrolled with a
    security key was not enforced when using an external account
  * fix: display the list of tasks in the runner edit page
  * fix(ui): use gap in switch items
  * fix(ui/pr): use eye icon for reviews
  * fix(ui): rescope menu height patch to overflow menu
  * fix(ui): show commit icon in branch dropdown button when viewing a commit
  * i18n: backport of translation updates
  * fix(i18n): prevent incorrect logging on strings missing in JSON locales
  * chore: replace github.com/go-testfixtures/testfixtures
  * fix: use linguist-generated for language stats
  * chore: tune down remote user promotion debug message shown as error
  * fix: set default restricted for OAuth2 user
  * chore: merge tests.AddFixtures and unittest.OverrideFixtures
  * fix(ui): make pagination labels always visible to screenreader
  * fix: delay-write trace.dat for forgejo diagnosis
  * Update module github.com/mattn/go-sqlite3 to v1.14.28 (v11.0/forgejo)

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=67
2025-05-06 11:10:01 +00:00
36893c20d3 Accepting request 1270597 from devel:tools:scm
- update to 11.0.0:
  * add ability to regenerate access tokens
  * drop SSPI auth support and more Windows files
  * localize theme names
  * improve incorrect ROOT_URL warning
  * admin user view
  * welcome screen for user dashboard
  * improve "URL" handling in markdown editor
  * display to maintainers in pull request when it is editable
  * simplify pronouns in user settings
  * split Forgejo landing page template to allow patching or removing Forgejo
    introduction section
  * set default release title to tag name
  * add quota overview
  * allow opening a single-file diff from file history view
  * reduce noise in the timeline of issues and pull requests. If certain
    timeline events are performed within a certain timeframe of each other with
    no other events in between, they will be combined into a single timeline
    event, and any contradictory actions will be canceled and not displayed.
    The older the events, the wider the timeframe will become.
  * i18n: make Danish available in UI
  * Updates from Codeberg Translate
  * Features
  * return run_number in workflow dispatch
  * add more sorting to own repository list
  * add sort parameter to list issues API
  * make it possible to track the progress of manually triggered workflows
  * interpret Precedence: auto_reply as an auto reply
  * parse multipart/related parts as attachments & guess filename
  * added missing nuget V2 properties to API (forwarded request 1270596 from rrahl0)

OBS-URL: https://build.opensuse.org/request/show/1270597
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=28
2025-04-18 14:21:13 +00:00
Richard Rahl
8af51634de - update to 11.0.0:
* add ability to regenerate access tokens
  * drop SSPI auth support and more Windows files
  * localize theme names
  * improve incorrect ROOT_URL warning
  * admin user view
  * welcome screen for user dashboard
  * improve "URL" handling in markdown editor
  * display to maintainers in pull request when it is editable
  * simplify pronouns in user settings
  * split Forgejo landing page template to allow patching or removing Forgejo
    introduction section
  * set default release title to tag name
  * add quota overview
  * allow opening a single-file diff from file history view
  * reduce noise in the timeline of issues and pull requests. If certain
    timeline events are performed within a certain timeframe of each other with
    no other events in between, they will be combined into a single timeline
    event, and any contradictory actions will be canceled and not displayed.
    The older the events, the wider the timeframe will become.
  * i18n: make Danish available in UI
  * Updates from Codeberg Translate
  * Features
  * return run_number in workflow dispatch
  * add more sorting to own repository list
  * add sort parameter to list issues API
  * make it possible to track the progress of manually triggered workflows
  * interpret Precedence: auto_reply as an auto reply
  * parse multipart/related parts as attachments & guess filename
  * added missing nuget V2 properties to API

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=65
2025-04-17 16:10:50 +00:00
cab1a5b1f7 Accepting request 1269826 from devel:tools:scm
- add patch fix-CVE-2025-3445.patch, for fixing bsc#1241245, bsc#2024-0406 (forwarded request 1269825 from rrahl0)

OBS-URL: https://build.opensuse.org/request/show/1269826
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=27
2025-04-16 18:41:43 +00:00
Richard Rahl
1b8728d8a1 - add patch fix-CVE-2025-3445.patch, for fixing bsc#1241245, bsc#2024-0406
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=63
2025-04-16 08:20:14 +00:00
365d7df36e Accepting request 1255423 from devel:tools:scm
- update to 10.0.3:
  * fix a regression which caused unnecessary escaping of URLs
  * update dependencies
- fix url for the keyring (forwarded request 1255422 from rrahl0)

OBS-URL: https://build.opensuse.org/request/show/1255423
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=26
2025-03-24 12:28:07 +00:00
Richard Rahl
ac40041bfd - update to 10.0.3:
* fix a regression which caused unnecessary escaping of URLs
  * update dependencies
- fix url for the keyring

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=61
2025-03-23 17:18:08 +00:00
Richard Rahl
e611cd8bd7 - update to 10.0.2:
* update of translations
  * When migrating from a Forgejo version lower than v10, the TOTP secrets
    found to be corrupted are now transparently removed
  * replies to pending review comments no longer generate a notification
  * consider public issues for project boards
  * the rootless Forgejo image version label is not set
  * do not allow SSH url for migration
  * setting.Service.EnableInternalSignIn = false is disabling forgotten password
  * show internal login prompt for account linking
  * enable ssh mirrors in rootless Forgejo images
  * render link in heading correctly in wiki TOC
  * Update module github.com/redis/go-redis/v9
  * fix: consider issues in repository accessible via access table
  * fix(api): miss-spelled description, corrected to public
  * fix: revert issue rendering for <a> element
  * chore(ci): ensure the manually cached Go can be run
  * chore(ci): Get Go binary from GOROOT instead of hardcoded path
  * fix: return 404 for empty repositories
  * fix: delay deleting authorization token
  * fix: native parsing of ssh certificate key
  * fix(ui): hide extra PR property labels on title edit
  * fix: always set stripped slashes on http request
  * fix(ui): hide 'New migration' button on org pages with migrations disabled
  * ui: update language stats layout and click behavior
  * Update dependency go to v1.23.6
- add patch fix-CVE-2025-22869.patch, fixing bsc#1239488, bsc#1239276, bsc#1234574

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=60
2025-03-21 18:29:17 +00:00
cb036f22a3 Accepting request 1253559 from devel:tools:scm
- add README.SUSE to explain SUSE specific things

- apparmor: /var/lib/forgejo/data/home/.gitconfig needs to be
  writable for initial setup

- apparmor: forgot to rename the profile in the %post scriptlet (forwarded request 1253274 from darix)

OBS-URL: https://build.opensuse.org/request/show/1253559
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=25
2025-03-17 21:17:42 +00:00
Richard Rahl
240f59a00e - add README.SUSE to explain SUSE specific things
- apparmor: /var/lib/forgejo/data/home/.gitconfig needs to be
  writable for initial setup

- apparmor: forgot to rename the profile in the %post scriptlet

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=58
2025-03-16 20:50:15 +00:00
fb030e82b2 Accepting request 1252969 from devel:tools:scm
- apparmor: fix wiki editing (forwarded request 1252920 from darix)

OBS-URL: https://build.opensuse.org/request/show/1252969
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=24
2025-03-14 22:51:53 +00:00
Richard Rahl
8e6170f7dd - apparmor: fix wiki editing
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=56
2025-03-14 06:40:13 +00:00
7462f40e76 Accepting request 1252070 from devel:tools:scm
Here is the fix for making the whole nodejs handling work again

- use --legacy-peer-deps to make the node modules handling work
  again (forwarded request 1252069 from darix)

OBS-URL: https://build.opensuse.org/request/show/1252070
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=23
2025-03-11 19:46:22 +00:00
Richard Rahl
8c1b48810c Here is the fix for making the whole nodejs handling work again
- use --legacy-peer-deps to make the node modules handling work
  again

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=54
2025-03-11 13:44:19 +00:00
Richard Rahl
e62e31f00f - move permissions of the log dir and the data dir
from forgejo:forgejo u=rwX,g=rwX,o=
  to   forgejo:forgejo u=rwX,g=rX,o=

- update apparmor profile to a profile that is less broad.

- create all directories before actually installing files

- make the HOME dir in the service file the same as the user
- migrate existing authorized keys files
  from %{_datadir}/%{name}/.ssh/authorized_keys
  to   %{_sharedstatedir}/%{name}/data/home/.ssh/authorized_keys

- fix file list to lock down permissions more

- don't require the apparmor subpackage when apparmor is installed
  the current profile is rather bad and it should be possible to
  keep it out.

- user should actually use /var/lib/forgejo/data/home

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=53
2025-03-11 12:47:50 +00:00
d0ff9b2e44 Accepting request 1244416 from devel:tools:scm
OBS-URL: https://build.opensuse.org/request/show/1244416
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=22
2025-02-09 19:06:57 +00:00
Richard Rahl
c086cbb5af - update to 10.0.1:
* Verify the ID of Forgejo Actions web endpoints belongs to the repository to
    prevent the deletion of runners or variables or the modification of
    variables
  * Enforce permissions on publicly available user or organizations projects to
    not leak information from issues and pull requests that belong to private
    repositories
  * fix(ui): display verified icon for default gpg key
  * fix: load settings for valid user and email check
  * Teach the doctor to remove orphaned two_factor with forgejo doctor check --run check-db-consistency --fix
  * fix: listing tokens must not require basic auth

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=51
2025-02-08 21:51:52 +00:00
515f3dfd8c Accepting request 1238299 from devel:tools:scm
- update to 10.0.0:
  full changelog at https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/10.0.0.md
  * Fix and refactor markdown rendering
  * migrate TOTP secrets to keying
  * Ensure source_id parameter is not skipped when set to 0 and correctly
    filter users in /api/v1/admin/users endpoint
  * Rework user profile settings
  * Rework new repository dialog
  * Show repository size on mobile
  * Add links to commit lists in contributors graph page
  * Add copy path button to file view
  * Put issue actions in a single row on mobile
  * Don't display email in profile settings when hidden
  * Highlight user mention in comments and commit messages
  * When bleve is used for issue search, a fuzzy search now applies to each
    word instead of all of them, as if they were a phrase
  * Add search to releases page
  * Combine review requests comments
  * If you select a portion of a comment and use the 'Quote reply' feature in
    the context menu, only that portion will be quoted
  * Set "your repositories" as the default filter for org dashboards
  * Add button to create a Markdown table in a comment
  * Add a bullet symbol between author and committer
  * Added link to show all Issues/PullRequests
  * Fix Action log UI race condition that occasionally prevents logs from loading
  * Fix wiki search overflowing on wide screens
  * Move "forgot_password"-link to fix login tab order
  * Update help links on page with no workflows
  * Add Low German to list of default languages
  * i18n: Add dummy language for checking translation keys (forwarded request 1238298 from rrahl0)

OBS-URL: https://build.opensuse.org/request/show/1238299
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=21
2025-01-16 19:24:12 +00:00
Richard Rahl
0fe230fb85 - update to 10.0.0:
full changelog at https://codeberg.org/forgejo/forgejo/src/branch/forgejo/release-notes-published/10.0.0.md
  * Fix and refactor markdown rendering
  * migrate TOTP secrets to keying
  * Ensure source_id parameter is not skipped when set to 0 and correctly
    filter users in /api/v1/admin/users endpoint
  * Rework user profile settings
  * Rework new repository dialog
  * Show repository size on mobile
  * Add links to commit lists in contributors graph page
  * Add copy path button to file view
  * Put issue actions in a single row on mobile
  * Don't display email in profile settings when hidden
  * Highlight user mention in comments and commit messages
  * When bleve is used for issue search, a fuzzy search now applies to each
    word instead of all of them, as if they were a phrase
  * Add search to releases page
  * Combine review requests comments
  * If you select a portion of a comment and use the 'Quote reply' feature in
    the context menu, only that portion will be quoted
  * Set "your repositories" as the default filter for org dashboards
  * Add button to create a Markdown table in a comment
  * Add a bullet symbol between author and committer
  * Added link to show all Issues/PullRequests
  * Fix Action log UI race condition that occasionally prevents logs from loading
  * Fix wiki search overflowing on wide screens
  * Move "forgot_password"-link to fix login tab order
  * Update help links on page with no workflows
  * Add Low German to list of default languages
  * i18n: Add dummy language for checking translation keys

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=49
2025-01-16 16:20:09 +00:00
387a439d8f Accepting request 1230941 from devel:tools:scm
- update to 9.0.3:
  * When Forgejo is configured to run the internal ssh server with
    [server].START_SSH_SERVER=true, it was possible for a registered user to
    impersonate another user
  * Revert "allow synchronizing user status from OAuth2 login providers" Fix
  * wiki search overflowing on wide screens Do not rewrite ssh keys files when
  * deleting a user without one fix: doctor fails with pq: syntax error at or
  * near "." whilst counting
    Authorization token without existing User
  * fix: Do not delete global Oauth2 applications Strict matching of allowed
  * content for sanitizer for asciicast
    and csv rendering
  * fix: remove softbreak from github legacy callout fix: correct permission
  * loading for limited organisation fix: clean up log files that no longer
  * exist fix: return correct type in GetSubModule Improve Swagger documentation
  * for user endpoints fix: normalize guessed languages from enry Show page
  * titles in wiki search results fix(test): TestGitAttributeCheckerError must
  * allow broken pipe fix: check read permissions for code owner review requests
  * fix: use better code to group UID and stopwatches fix: api repo compare with
  * commit hashes bug: correctly generate oauth2 jwt signing key
- disable gpg verification for this release (forwarded request 1230940 from rrahl0)

OBS-URL: https://build.opensuse.org/request/show/1230941
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=20
2024-12-15 11:37:19 +00:00
Richard Rahl
e5d80c70f5 Accepting request 1230940 from home:rrahl0
- update to 9.0.3:
  * When Forgejo is configured to run the internal ssh server with
    [server].START_SSH_SERVER=true, it was possible for a registered user to
    impersonate another user
  * Revert "allow synchronizing user status from OAuth2 login providers" Fix
  * wiki search overflowing on wide screens Do not rewrite ssh keys files when
  * deleting a user without one fix: doctor fails with pq: syntax error at or
  * near "." whilst counting
    Authorization token without existing User
  * fix: Do not delete global Oauth2 applications Strict matching of allowed
  * content for sanitizer for asciicast
    and csv rendering
  * fix: remove softbreak from github legacy callout fix: correct permission
  * loading for limited organisation fix: clean up log files that no longer
  * exist fix: return correct type in GetSubModule Improve Swagger documentation
  * for user endpoints fix: normalize guessed languages from enry Show page
  * titles in wiki search results fix(test): TestGitAttributeCheckerError must
  * allow broken pipe fix: check read permissions for code owner review requests
  * fix: use better code to group UID and stopwatches fix: api repo compare with
  * commit hashes bug: correctly generate oauth2 jwt signing key
- disable gpg verification for this release

OBS-URL: https://build.opensuse.org/request/show/1230940
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=47
2024-12-13 22:55:16 +00:00
700f71c09f Accepting request 1224537 from devel:tools:scm
- update to 9.0.2:
  * it was possible to use a token sent via email for secondary email validation
    to reset the password instead. In other words, a token sent for a given
    action (registration, password reset or secondary email validation) could
    be used to perform a different action.
  * a fork of a public repository would show in the list of forks, even if its
    owner was not a public user or organization.
  * the members of an organization team with read access to a repository (e.g.
    to read issues) but no read access to the code could read the RSS or atom
    feeds which include the commit activity. Reading the RSS or atom feeds is
    now denied unless the team has read permissions on the code.
  * the tokens used when replying by email to issues or pull requests were
    weaker than the rfc2104 recommendations.
  * a registered user could modify the update frequency of any push mirror.
  * it was possible to use basic authorization (i.e. user:password) for requests
    to the API even when security keys were enrolled for a user.
  * some markup sanitation rules were not as strong as they could be.
  * when Forgejo is configured to enable instance wide search (e.g. with bleve),
    results found in the repositories of private or limited users were displayed
    to anonymous visitors.
  * fix: handle renamed dependency for cargo registry.
  * support www.github.com for migrations.
  * move forgot_password-link to fix login tab order.
  * code owners will not be mentioned when a pull request comes from a forked
    repository.
  * labels are missing in the pull request payload removing a label.
  * in a Forgejo Actions workflow, the unlabeled event type for pull requests
    was incorrectly mapped to the labeled event type.
  * when a Forgejo Actions issue or pull request workflow is triggered by an
    labeled or unlabeled event type, it misses information about the label added (forwarded request 1224536 from rrahl0)

OBS-URL: https://build.opensuse.org/request/show/1224537
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=19
2024-11-17 15:41:40 +00:00
Richard Rahl
b2b5be77cc - update to 9.0.2:
* it was possible to use a token sent via email for secondary email validation
    to reset the password instead. In other words, a token sent for a given
    action (registration, password reset or secondary email validation) could
    be used to perform a different action.
  * a fork of a public repository would show in the list of forks, even if its
    owner was not a public user or organization.
  * the members of an organization team with read access to a repository (e.g.
    to read issues) but no read access to the code could read the RSS or atom
    feeds which include the commit activity. Reading the RSS or atom feeds is
    now denied unless the team has read permissions on the code.
  * the tokens used when replying by email to issues or pull requests were
    weaker than the rfc2104 recommendations.
  * a registered user could modify the update frequency of any push mirror.
  * it was possible to use basic authorization (i.e. user:password) for requests
    to the API even when security keys were enrolled for a user.
  * some markup sanitation rules were not as strong as they could be.
  * when Forgejo is configured to enable instance wide search (e.g. with bleve),
    results found in the repositories of private or limited users were displayed
    to anonymous visitors.
  * fix: handle renamed dependency for cargo registry.
  * support www.github.com for migrations.
  * move forgot_password-link to fix login tab order.
  * code owners will not be mentioned when a pull request comes from a forked
    repository.
  * labels are missing in the pull request payload removing a label.
  * in a Forgejo Actions workflow, the unlabeled event type for pull requests
    was incorrectly mapped to the labeled event type.
  * when a Forgejo Actions issue or pull request workflow is triggered by an
    labeled or unlabeled event type, it misses information about the label added

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=45
2024-11-16 03:41:20 +00:00
24f0157146 Accepting request 1218913 from devel:tools:scm
- update to 9.0.1:
  * Forgejo generates a token which is used to authenticate web endpoints that
    are only meant to be used internally, for instance when the SSH daemon is
    used to push a commit with Git. The verification of this token was not done
    in constant time and was susceptible to timing attacks.
  * Because of a missing permission check, the branch used to propose a pull
    request to a repository can always be deleted by the user performing the merge.
  * Fix boolean inputs in workflow_dispatch
  * package arch database not updating when uploading "any" architecture
  * correct SQL query for active issues
  * specify default value for EXPLORE_DEFAULT_SORT.
  * fix: Add recentupdated as recognized sort option
  * Update dependency mermaid to v11.3.0 (v9.0/forgejo)
  * Always update expiration time when creating an artifact
  * Update scheduled tasks even if changes are pushed by "ActionsUser"
  * Fix disable 2fa bug
  * i18n: update of translations from Codeberg Translate
  * fix: make branch protection work for new branches
  * link to security policy in security.txt
  * fix: don't show truncated comments in RSS/Atom feeds
  * fix: typo on releases for source code downloads
  * Revert "add gap between branch dropdown and PR button"
  * fix: Don't double escape delete branch text
  * fix: Add server logging for OAuth server errors
  * forgejo-cli is now a symlink and cannot be used for sanity checks
  * fix: correct documentation for non 200 responses in swagger
- forgejo is since 9.0.0 GPL-3.0-or-later (forwarded request 1218912 from rrahl0)

OBS-URL: https://build.opensuse.org/request/show/1218913
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=18
2024-10-29 13:35:58 +00:00
Richard Rahl
ce6404f852 - update to 9.0.1:
* Forgejo generates a token which is used to authenticate web endpoints that
    are only meant to be used internally, for instance when the SSH daemon is
    used to push a commit with Git. The verification of this token was not done
    in constant time and was susceptible to timing attacks.
  * Because of a missing permission check, the branch used to propose a pull
    request to a repository can always be deleted by the user performing the merge.
  * Fix boolean inputs in workflow_dispatch
  * package arch database not updating when uploading "any" architecture
  * correct SQL query for active issues
  * specify default value for EXPLORE_DEFAULT_SORT.
  * fix: Add recentupdated as recognized sort option
  * Update dependency mermaid to v11.3.0 (v9.0/forgejo)
  * Always update expiration time when creating an artifact
  * Update scheduled tasks even if changes are pushed by "ActionsUser"
  * Fix disable 2fa bug
  * i18n: update of translations from Codeberg Translate
  * fix: make branch protection work for new branches
  * link to security policy in security.txt
  * fix: don't show truncated comments in RSS/Atom feeds
  * fix: typo on releases for source code downloads
  * Revert "add gap between branch dropdown and PR button"
  * fix: Don't double escape delete branch text
  * fix: Add server logging for OAuth server errors
  * forgejo-cli is now a symlink and cannot be used for sanity checks
  * fix: correct documentation for non 200 responses in swagger
- forgejo is since 9.0.0 GPL-3.0-or-later

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=43
2024-10-29 05:44:32 +00:00
f38a5bd8a9 Accepting request 1208671 from devel:tools:scm
- update to 9.0.0:
  * OIDC integrations that POST to /login/oauth/introspect without sending HTTP
    basic authentication will now fail
  * The public scope of an application token does not filter out private repositories,
    organizations or packages in some cases
  * Drop support to build Forgejo with the optional go-git Git backend
  * Set created_by as the default filter for /issues and /pulls
  * Set fuzzy as default for issue search.
  * Improve commit graph layout.
  * Add support for iconify icons.
  * Allow multi-line relationship labels.
  * Adds architecture diagrams which allows users to show relations between services.
  * Improve diffs generated by Forgejo.
  * Add rel="nofollow" to in-list labels.
  * Distinguish between new tags, releases and pre-releases on activity page.
  * Highlighted code search results.
  * Refactor repo migration items.
  * Add package counter to repo/user/org overview pages.
  * Replace vue-bar-graph with chart.js.
  * Add more emoji and code block rendering in issues.
  * Bad spacing on new release page.
  * Milestone assignment in new issue.
  * git-grep: ensure bounded default for MatchesPerFile.
  * Incorrect go to citation button.
  * Incorrect HTMX support for profile card.
  * Accessibility keyboard support for test actions.
  * Update pull request icons.
  * "Assign to me" button on PR and Issues.
  * Add architecture-specific removal support for arch package.
  * Add bin to Composer Metadata. (forwarded request 1208670 from rrahl0)

OBS-URL: https://build.opensuse.org/request/show/1208671
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=17
2024-10-18 13:55:25 +00:00
Richard Rahl
08961a0cfc - update to 9.0.0:
* OIDC integrations that POST to /login/oauth/introspect without sending HTTP
    basic authentication will now fail
  * The public scope of an application token does not filter out private repositories,
    organizations or packages in some cases
  * Drop support to build Forgejo with the optional go-git Git backend
  * Set created_by as the default filter for /issues and /pulls
  * Set fuzzy as default for issue search.
  * Improve commit graph layout.
  * Add support for iconify icons.
  * Allow multi-line relationship labels.
  * Adds architecture diagrams which allows users to show relations between services.
  * Improve diffs generated by Forgejo.
  * Add rel="nofollow" to in-list labels.
  * Distinguish between new tags, releases and pre-releases on activity page.
  * Highlighted code search results.
  * Refactor repo migration items.
  * Add package counter to repo/user/org overview pages.
  * Replace vue-bar-graph with chart.js.
  * Add more emoji and code block rendering in issues.
  * Bad spacing on new release page.
  * Milestone assignment in new issue.
  * git-grep: ensure bounded default for MatchesPerFile.
  * Incorrect go to citation button.
  * Incorrect HTMX support for profile card.
  * Accessibility keyboard support for test actions.
  * Update pull request icons.
  * "Assign to me" button on PR and Issues.
  * Add architecture-specific removal support for arch package.
  * Add bin to Composer Metadata.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=41
2024-10-17 15:53:44 +00:00
5643d3ff6d Accepting request 1206564 from devel:tools:scm
OBS-URL: https://build.opensuse.org/request/show/1206564
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=16
2024-10-10 20:10:58 +00:00
Richard Rahl
d5738d2684 - add dont-strip.patch for not stripping the main binary (so we can
create debuginfo package)

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=39
2024-10-09 15:38:00 +00:00
Richard Rahl
7f8373dfb5 OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=38 2024-10-09 07:30:04 +00:00
Richard Rahl
7d16792097 Add package environment-to-ini for OCI containers. Reasoning behing this is I've got little bit frustrated with official docker rootless image and tried to remake it for testing, profit and fun with kiwi (https://build.opensuse.org/package/show/home:illuusio:images/container-forgejo-kiwi) before submitting fixes upstream. I noticed that environment-to-ini is missing. It's useless for most of the human kind but if you like to test official script and mimic original then it's crucial.
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=37
2024-10-09 05:56:04 +00:00
d04fb1c3c3 Accepting request 1199856 from devel:tools:scm
OBS-URL: https://build.opensuse.org/request/show/1199856
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=15
2024-09-10 19:14:19 +00:00
52adfa3933 Accepting request 1197495 from devel:tools:scm
- update to 8.0.2:
  * Overflow for images on project cards.
  * Allow unreacting from comment popover.
  * The scope of application tokens is not verified when writing
    containers or Conan packages.
  * When a Forgejo Actions workflow includes a workflow_dispatch with
    inputs and other events (for instance push), it is silently ignored
    because of a parsing error.
  * Automerge on AGit pull requests is ignored.
  * Show lock owner instead of repo owner on LFS setting page.
  * Render plain text file if the LFS object doesn't exist.
  * Panic of ssh public key page after deletion of an auth source.
  * Add missing repository type filter parameters to pager.
  * Reverted a change from Gitea which prevented allow/reject reviews on
    merged or closed PRs. This change was not considered by the Forgejo
    UI team and there is a consensus that it feels like a regression,
    since it interferes with workflows known to be used by Forgejo users
    without providing a tangible benefit.
  * Run full PR checks on AGit push.
  * Updated translations (forwarded request 1197494 from rrahl0)

OBS-URL: https://build.opensuse.org/request/show/1197495
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=14
2024-08-30 11:32:11 +00:00
Richard Rahl
ccfa715678 - update to 8.0.2:
* Overflow for images on project cards.
  * Allow unreacting from comment popover.
  * The scope of application tokens is not verified when writing
    containers or Conan packages.
  * When a Forgejo Actions workflow includes a workflow_dispatch with
    inputs and other events (for instance push), it is silently ignored
    because of a parsing error.
  * Automerge on AGit pull requests is ignored.
  * Show lock owner instead of repo owner on LFS setting page.
  * Render plain text file if the LFS object doesn't exist.
  * Panic of ssh public key page after deletion of an auth source.
  * Add missing repository type filter parameters to pager.
  * Reverted a change from Gitea which prevented allow/reject reviews on
    merged or closed PRs. This change was not considered by the Forgejo
    UI team and there is a consensus that it feels like a regression,
    since it interferes with workflows known to be used by Forgejo users
    without providing a tangible benefit.
  * Run full PR checks on AGit push.
  * Updated translations

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=33
2024-08-29 16:30:48 +00:00
fe1055e9bc Accepting request 1193293 from devel:tools:scm
- update to 8.0.1:
  * A change introduced in Forgejo v1.21 allows a Forgejo user with write
    permission on a repository description to inject a client-side script into
    the web page viewed by the visitor. This XSS allows for href in anchor
    elements to be set to a javascript: URI in the repository description,
    which will execute the specified script upon clicking (and not upon
    loading). AllowStandardURLs is now called for the repository description
    policy, which ensures that URIs in anchor elements are mailto:, http:// 
    or https:// and thereby disallowing the javascript: URI.
  * Do not include trailing EOL character when counting lines
  * Add background to reactions on hover
  * Prevent uppercase in header of dashboard context selector
  * Fix page layout in admin settings
  * Ensure all filters are persistent in issue filters
  * Allow 4 charachter SHA in /src/commit
- update to 8.0.0:
  full changelog at https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#8-0-0
  Highlights:
    * remove Microsoft SQL Server support
    * introduce a branch/tag dropdown in the code search page
    * added support for fuzzy searching in /user/repo/issues and /user/repo/pulls
    * API endpoints for managing tag protection.
    * add Reviewed-on and Reviewed-by variables to the merge template
    * display an error when an issue comment is edited simultaneously by
      two users instead of silently overriding one of them
    * when installing Forgejo through the built-in installer, open
      (self-) registration is now disabled by default
    * add support for the reddit and Hubspot OAuth providers.
    * CERT management was improved when ENABLE_ACME=true
    * language detection in the repository got additional languages (forwarded request 1193292 from rrahl0)

OBS-URL: https://build.opensuse.org/request/show/1193293
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=13
2024-08-12 10:31:30 +00:00
Richard Rahl
817c8031f2 - update to 8.0.1:
* A change introduced in Forgejo v1.21 allows a Forgejo user with write
    permission on a repository description to inject a client-side script into
    the web page viewed by the visitor. This XSS allows for href in anchor
    elements to be set to a javascript: URI in the repository description,
    which will execute the specified script upon clicking (and not upon
    loading). AllowStandardURLs is now called for the repository description
    policy, which ensures that URIs in anchor elements are mailto:, http:// 
    or https:// and thereby disallowing the javascript: URI.
  * Do not include trailing EOL character when counting lines
  * Add background to reactions on hover
  * Prevent uppercase in header of dashboard context selector
  * Fix page layout in admin settings
  * Ensure all filters are persistent in issue filters
  * Allow 4 charachter SHA in /src/commit
- update to 8.0.0:
  full changelog at https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#8-0-0
  Highlights:
    * remove Microsoft SQL Server support
    * introduce a branch/tag dropdown in the code search page
    * added support for fuzzy searching in /user/repo/issues and /user/repo/pulls
    * API endpoints for managing tag protection.
    * add Reviewed-on and Reviewed-by variables to the merge template
    * display an error when an issue comment is edited simultaneously by
      two users instead of silently overriding one of them
    * when installing Forgejo through the built-in installer, open
      (self-) registration is now disabled by default
    * add support for the reddit and Hubspot OAuth providers.
    * CERT management was improved when ENABLE_ACME=true
    * language detection in the repository got additional languages

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=31
2024-08-11 22:22:28 +00:00
ffec6c3cf3 Accepting request 1193061 from devel:tools:scm
OBS-URL: https://build.opensuse.org/request/show/1193061
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=12
2024-08-10 17:07:58 +00:00
Richard Rahl
3ee08f8470 update to 7.0.7
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=29
2024-08-09 21:10:26 +00:00
011ebefb7f Accepting request 1191022 from devel:tools:scm
OBS-URL: https://build.opensuse.org/request/show/1191022
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=11
2024-08-01 20:06:10 +00:00
Richard Rahl
3b35cb0d92 Accepting request 1190962 from home:ojkastl_buildservice:Branch_devel_tools_scm
update to 7.0.6

OBS-URL: https://build.opensuse.org/request/show/1190962
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=27
2024-08-01 16:34:02 +00:00
8991b556a6 Accepting request 1187532 from devel:tools:scm
OBS-URL: https://build.opensuse.org/request/show/1187532
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=10
2024-07-24 13:29:43 +00:00
Richard Rahl
66d7ac17a7 Accepting request 1187469 from home:ojkastl_buildservice:Branch_devel_tools_scm
fix typo Environemnt in forgejo.service

OBS-URL: https://build.opensuse.org/request/show/1187469
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=25
2024-07-15 09:29:16 +00:00
62a5b41381 Accepting request 1185732 from devel:tools:scm
OBS-URL: https://build.opensuse.org/request/show/1185732
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=9
2024-07-05 17:50:37 +00:00
Richard Rahl
bdd8956398 Accepting request 1185730 from home:rrahl0:upgrades
- update to 7.0.5:
  * Fixed: CVE-2024-24791 - GO-2024-2963 Denial of service due to improper 
    100-continue handling in net/http
  * Fixed: authentication Source Administration page wrongfully handles the "Custom URLs Instead 
    of Default URLs" checkbox (missing checkbox, irrelevant fields).
  * Fixed: git push to an adopted repository fails.
  * Fixed: markdown doesn't render math within brackets
  * Fixed: selecting the "No Project" filter in the issue/pull request list has no effect
  * Fixed: error 500 when processing crafted TIFF files.
  * Fixed: wrong placeholder text in the form for adding repository collaborator.

OBS-URL: https://build.opensuse.org/request/show/1185730
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=23
2024-07-05 07:49:29 +00:00
235842a651 Accepting request 1181170 from devel:tools:scm
- update to 7.0.4:
  * Fixed: CVE-2024-24789: the archive/zip package's handling of certain types
    of invalid zip files differs from the behavior of most zip implementations.
    This misalignment could be exploited to create an zip file with contents that
    vary depending on the implementation reading the file.
  * the OAuth2 implementation does not always require authentication for public
    clients, a requirement of RFC 6749 Section 10.2
  * forgejo migrate-storage --type actions-artifacts always fails because it picks the wrong path.
  * avatar files can be found in storage while they do not exist in the database.
  * repository admins are always denied the right to force merge and instance admins
    are subject to restrictions to merge that must only apply to repository admins.
  * non conformance with the Nix tarball fetcher immutable link protocol.
  * migrated activities (such as reviews) are mapped to the user who initiated the
    migration rather than the Ghost user, if the external user cannot be mapped to a
    local one. This mapping mismatch leads to internal server errors in some cases.
  *  a v7.0.0 regression causes [admin].SEND_NOTIFICATION_EMAIL_ON_NEW_USER=true to always be ignored.
  * using a subquery for user deletion is a performance bottleneck when using mariadb 10
    because only mariadb 11 takes advantage of the available index.
  * a v7.0.3 regression causes the expanding diffs in pull requests to fail with a 404 error.
  * SourceHut Builds webhook fail when the triggers field is used.
  * the label list rendering in the issue and pull request timeline is displayed on
    multiple lines instead of a single one.
  * Git hooks of this repository seem to be broken." warning when pushing more than one branch at a time.
  * automerge does not happen when the approval count reaches the required threshold.
  * the FORCE_PRIVATE=true setting is not consistently enforced.
  * CSRF validation errors when OAuth is not enabled.
  * headlines in rendered org-mode do not have a margin on the top (forwarded request 1181169 from rrahl0)

OBS-URL: https://build.opensuse.org/request/show/1181170
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=8
2024-06-17 17:29:50 +00:00
Richard Rahl
3982bdbf67 Accepting request 1181169 from home:rrahl0:upgrades
- update to 7.0.4:
  * Fixed: CVE-2024-24789: the archive/zip package's handling of certain types
    of invalid zip files differs from the behavior of most zip implementations.
    This misalignment could be exploited to create an zip file with contents that
    vary depending on the implementation reading the file.
  * the OAuth2 implementation does not always require authentication for public
    clients, a requirement of RFC 6749 Section 10.2
  * forgejo migrate-storage --type actions-artifacts always fails because it picks the wrong path.
  * avatar files can be found in storage while they do not exist in the database.
  * repository admins are always denied the right to force merge and instance admins
    are subject to restrictions to merge that must only apply to repository admins.
  * non conformance with the Nix tarball fetcher immutable link protocol.
  * migrated activities (such as reviews) are mapped to the user who initiated the
    migration rather than the Ghost user, if the external user cannot be mapped to a
    local one. This mapping mismatch leads to internal server errors in some cases.
  *  a v7.0.0 regression causes [admin].SEND_NOTIFICATION_EMAIL_ON_NEW_USER=true to always be ignored.
  * using a subquery for user deletion is a performance bottleneck when using mariadb 10
    because only mariadb 11 takes advantage of the available index.
  * a v7.0.3 regression causes the expanding diffs in pull requests to fail with a 404 error.
  * SourceHut Builds webhook fail when the triggers field is used.
  * the label list rendering in the issue and pull request timeline is displayed on
    multiple lines instead of a single one.
  * Git hooks of this repository seem to be broken." warning when pushing more than one branch at a time.
  * automerge does not happen when the approval count reaches the required threshold.
  * the FORCE_PRIVATE=true setting is not consistently enforced.
  * CSRF validation errors when OAuth is not enabled.
  * headlines in rendered org-mode do not have a margin on the top

OBS-URL: https://build.opensuse.org/request/show/1181169
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=21
2024-06-16 13:05:45 +00:00
9f1f8a62cb Accepting request 1175962 from devel:tools:scm
OBS-URL: https://build.opensuse.org/request/show/1175962
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=7
2024-05-23 13:35:17 +00:00
Richard Rahl
7288b74937 Accepting request 1175961 from home:rrahl0:upgrades
- update to 7.0.3:
  * CVE-2024-24788: a malformed DNS message in response to a query can
    cause the lookup functions to get stuck in an infinite loop
  * backticks in mermaid block diagram labels are not sanitized properly
  * migration of a repository from gogs fails when it is hosted at a subpath.
  * when creating an OAuth2 application the redirect URLs are not enforced to
    be mandatory
  * the API incorrectly excludes repositories where code is not enabled
  * "Allow edits from maintainers" cannot be modified via the pull request web UI
  * repository activity feeds (including RSS and Atom feeds) contain
    repeated activities
  * uploading maven packages with metadata being uploaded separately will fail
  * the mail notification sent about commits pushed to pull requests are empty
  * inline emails attachments are not properly handled when commenting on an
    issue via email
  * the links to .zip and tar.gz on the tag list web UI fail
  * expanding code diff while previewing a pull request before it is created fails
  * the CLI is not able to migrate Forgejo Actions artifacts
  * when adopting a repository, the default branch is not taken into account
  * when using reverse proxy authentication, logout will not be taken into
    account when immediately trying to login afterwards
  * pushing to the master branch of a sha256 repository fails
  * a very long project column name will make the action menu inaccessible
  * a useless error is displayed when the title of a merged pull request is
    modified
  * workflow badges are not working for workflows that are not running on push
    (such as scheduled workflows, and ones that run on tags and pull requests)

OBS-URL: https://build.opensuse.org/request/show/1175961
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=19
2024-05-22 20:56:36 +00:00
0dd0c110ed Accepting request 1171483 from devel:tools:scm
- update to 7.0.2:
  * regression where subscribing to or unsubscribing from an issue in a
    repository with no code produced an internal server error.
  * regression makes all the refs sent in Gitea webhooks to be full refs and
    might break Woodpecker CI pipelines triggered on tag (CI_COMMIT_TAG
    contained the full ref). This issue has been fixed in the main branch of
    Woodpecker CI as well.
  *  the webhook branch filter wrongly applied the match on the full ref for
     branch creation and deletion (wrongly skipping events).
  * toggling the WIP state of a pull request is possible from the sidebar,
    but not from the footer.
  * when mentioning a user, the markup post-processor does not handle the case
    where the mentioned user does not exist: it tries to skip to the next node,
    which in turn, ended up skipping the rest of the line.
  * excessive and unnecessary database queries when a user with no repositories
    is viewing their dashboard.
  * duplicate status check contexts show in the branch protection settings.
  * profile info fails to render german singular translation.
  * inline attachments of incoming emails (as they occur for example with Apple
    Mail) are not attached to comments. (forwarded request 1171482 from rrahl0)

OBS-URL: https://build.opensuse.org/request/show/1171483
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=6
2024-05-03 17:45:42 +00:00
Richard Rahl
15a49f0606 Accepting request 1171482 from home:rrahl0:upgrades
- update to 7.0.2:
  * regression where subscribing to or unsubscribing from an issue in a
    repository with no code produced an internal server error.
  * regression makes all the refs sent in Gitea webhooks to be full refs and
    might break Woodpecker CI pipelines triggered on tag (CI_COMMIT_TAG
    contained the full ref). This issue has been fixed in the main branch of
    Woodpecker CI as well.
  *  the webhook branch filter wrongly applied the match on the full ref for
     branch creation and deletion (wrongly skipping events).
  * toggling the WIP state of a pull request is possible from the sidebar,
    but not from the footer.
  * when mentioning a user, the markup post-processor does not handle the case
    where the mentioned user does not exist: it tries to skip to the next node,
    which in turn, ended up skipping the rest of the line.
  * excessive and unnecessary database queries when a user with no repositories
    is viewing their dashboard.
  * duplicate status check contexts show in the branch protection settings.
  * profile info fails to render german singular translation.
  * inline attachments of incoming emails (as they occur for example with Apple
    Mail) are not attached to comments.

OBS-URL: https://build.opensuse.org/request/show/1171482
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=17
2024-05-03 00:56:40 +00:00
85025834d3 Accepting request 1170483 from devel:tools:scm
Forwarded request #1170482 from rrahl0

- update to 7.0.1:
  * LFS data corruption when running the forgejo doctor check --fix CLI command
    or setting [cron.gc_lfs].ENABLED=true (the default is false)
  * non backward compatible change in the forgejo admin user create CLI command
  * error 500 because of an incorrect evaluation of the template when visiting
    the LFS settings of a repository
  * GET /repos/{owner}/{name} API endpoint always returns an empty string for
    the object_format_name field
  * fuzzy search may fail with bleve

OBS-URL: https://build.opensuse.org/request/show/1170483
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=5
2024-04-28 19:50:09 +00:00
Richard Rahl
19088581ea Accepting request 1170482 from home:rrahl0:upgrades
- update to 7.0.1:
  * LFS data corruption when running the forgejo doctor check --fix CLI command
    or setting [cron.gc_lfs].ENABLED=true (the default is false)
  * non backward compatible change in the forgejo admin user create CLI command
  * error 500 because of an incorrect evaluation of the template when visiting
    the LFS settings of a repository
  * GET /repos/{owner}/{name} API endpoint always returns an empty string for
    the object_format_name field
  * fuzzy search may fail with bleve

OBS-URL: https://build.opensuse.org/request/show/1170482
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=15
2024-04-27 15:04:13 +00:00
1fcb4fe7c3 Accepting request 1170088 from devel:tools:scm
OBS-URL: https://build.opensuse.org/request/show/1170088
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=4
2024-04-25 18:49:37 +00:00
Richard Rahl
6ca9eae56a Accepting request 1170087 from home:rrahl0:upgrades
- update to 7.0.0:
  This is only an excerpt from the full changelog, which you can find
  in your RELEASE-NOTES.md or at
  https://codeberg.org/forgejo/forgejo/src/branch/forgejo/RELEASE-NOTES.md#7-0-0
  * MySQL 8.0 or PostgreSQL 12 are the minimum supported versions.
    The database must be migrated before upgrading.
    The requirements regarding SQLite did not change.
  * The per_page parameter is no longer a synonym for limit in the
    /repos/{owner}/{repo}/releases API endpoint.
  * The date format of the created and last_update fields of the 
    /repos/{owner}/{repo}/push_mirrors and /repos/{owner}/{repo}/push_mirrors
    API endpoint changed to be timestamps instead of numbers.
  * Labels used by pprof endpoint have been changed
  * The fogejo admin user create CLI command requires a password change
    by default when creating the first user

OBS-URL: https://build.opensuse.org/request/show/1170087
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=13
2024-04-25 02:47:42 +00:00
f26bea8e46 Accepting request 1169377 from devel:tools:scm
OBS-URL: https://build.opensuse.org/request/show/1169377
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=3
2024-04-21 18:27:41 +00:00
Richard Rahl
7a35a0dddc Accepting request 1169375 from home:rrahl0:upgrades
update to 1.21.11-1

OBS-URL: https://build.opensuse.org/request/show/1169375
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=11
2024-04-20 14:15:17 +00:00
c4b3083495 Accepting request 1165706 from devel:tools:scm
OBS-URL: https://build.opensuse.org/request/show/1165706
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=2
2024-04-08 15:38:33 +00:00
Richard Rahl
fb22e5ed3d Accepting request 1165705 from home:rrahl0:branches:devel:tools:scm
- update to 1.21.10-0:
  * CVE-2023-45288 which permits an attacker to cause an HTTP/2 endpoint to
    read arbitrary amounts of header data
  * Fix to not remove repository avatars when the doctor runs with --fix
    on the repository archives.
  * Detect protected branch on branch rename.
  * Don't delete inactive emails explicitly.
  * Fix user interface when a review is deleted without refreshing.
  * Fix paths when finding files via the web interface that were not escaped.
  * Respect DEFAULT_ORG_MEMBER_VISIBLE setting when adding creator to org.
  * Fix duplicate migrated milestones.
  * Fix inline math blocks can't be preceeded/followed by alphanumerical
    characters.

OBS-URL: https://build.opensuse.org/request/show/1165705
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=9
2024-04-05 19:02:52 +00:00
b909a1ba9a Accepting request 1164515 from devel:tools:scm
OBS-URL: https://build.opensuse.org/request/show/1164515
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/forgejo?expand=0&rev=1
2024-04-04 20:26:31 +00:00
Richard Rahl
22388ccb98 Accepting request 1164510 from home:rrahl0:branches:devel:tools:scm
- increase golang dep to 1.22, to imitate the CI/CD of forgejo
- revise how the apparmor package gets build + add selinux

OBS-URL: https://build.opensuse.org/request/show/1164510
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=7
2024-04-04 08:14:51 +00:00
Richard Rahl
35e84d159a Accepting request 1160993 from home:rrahl0:branches:devel:tools:scm
- update to 1.21.8-0:
  * Fix /api/v1/{owner}/{repo}/issue_templates which was always failing with a
    500 error.
  * Prevent error 500 on /user/settings/security when SignedUser has a linked
    account from a deactivated authentication source.
  * Fix error 500 when pushing release to an empty repo.
  * Fix incorrect rendering csv file when file size is larger than UI.CSV.MaxFileSize.
  * Fix error 500 when deleting account with incorrect password or unsupported login type.
  * handle user-defined name anchors like [Link](#link) linking to <a name="link"></a>Link.
  * Use correct head commit for CODEOWNER.
  * Fix manual merge button.
  * Make meilisearch do exact search for issues.
  * Fix PR creation via api between branches of same repo with head field namespaced.

OBS-URL: https://build.opensuse.org/request/show/1160993
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=6
2024-03-23 21:36:41 +00:00
Richard Rahl
b2c8cd471a Accepting request 1160096 from home:rrahl0:branches:devel:tools:scm
.

OBS-URL: https://build.opensuse.org/request/show/1160096
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=5
2024-03-21 12:27:58 +00:00
Richard Rahl
e5096b53ec Accepting request 1156263 from home:rrahl0:upgrades
add apparmor profile

OBS-URL: https://build.opensuse.org/request/show/1156263
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=4
2024-03-08 07:39:42 +00:00
Richard Rahl
affc28b574 OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=3 2024-03-08 07:01:06 +00:00
Richard Rahl
b5a87578fc Accepting request 1155549 from home:rrahl0:upgrades
update to 1.21.7-0

OBS-URL: https://build.opensuse.org/request/show/1155549
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=2
2024-03-06 12:32:29 +00:00
c149997e35 Accepting request 1150056 from home:rrahl0
OBS-URL: https://build.opensuse.org/request/show/1150056
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/forgejo?expand=0&rev=1
2024-02-25 08:22:07 +00:00
27 changed files with 8981 additions and 6114 deletions

40
README.SUSE Normal file
View File

@@ -0,0 +1,40 @@
SUSE Specific Notes
---------------------
By default the package does not allow writing to `/etc/forgejo/conf/app.ini`.
This is not a problem during normal runtime. But during the initial setup forgejo
wants to write to this file. We can temporarily allow it with:
```
chown -R forgejo: /etc/forgejo/conf/
```
If apparmor is enabled as well, we need to temporarily allow writing there as well.
You can check this with:
```
ps aufxZ | grep '^forgejo'
forgejo (enforce) ...
```
If it is running in apparmor use this to allow the temporary permissions:
```
echo "/etc/forgejo/conf/app.ini rwlk," >> /etc/apparmor.d/local/forgejo
apparmor_parser -r /etc/apparmor.d/forgejo
```
Once the initial installation is done you can use this to restore the permissions:
```
rpm --setugids --setperms forgejo
```
And remove the line from the `/etc/apparmor.d/local/forgejo` file again and reload
the profile with
```
apparmor_parser -r /etc/apparmor.d/forgejo
```

View File

@@ -1,6 +1,10 @@
<?xml version="1.0" ?>
<services>
<service name="download_files" mode="manual" />
<service name="extract_file" mode="manual">
<param name="archive">forgejo-src-*.tar.gz</param>
<param name="files">forgejo-src-*/package-lock.json</param>
</service>
<service name="node_modules" mode="manual">
<param name="cpio">node_modules.obscpio</param>
<param name="output">node_modules.spec.inc</param>

View File

@@ -1,6 +1,6 @@
diff -rub forgejo-src-8.0.0/custom/conf/app.example.ini forgejo-src-8.0.0-patched/custom/conf/app.example.ini
--- forgejo-src-8.0.0/custom/conf/app.example.ini 2024-07-30 06:40:03.000000000 +0200
+++ forgejo-src-8.0.0-patched/custom/conf/app.example.ini 2024-08-01 20:24:55.972480197 +0200
diff -rub forgejo-src-10.0.0/custom/conf/app.example.ini forgejo-src-10.0.0-patched/custom/conf/app.example.ini
--- forgejo-src-10.0.0/custom/conf/app.example.ini 2025-01-16 07:37:10.000000000 +0100
+++ forgejo-src-10.0.0-patched/custom/conf/app.example.ini 2025-01-16 14:05:03.035772154 +0100
@@ -51,7 +51,7 @@
;APP_DISPLAY_NAME_FORMAT = {APP_NAME}: {APP_SLOGAN}
;;
@@ -10,7 +10,7 @@ diff -rub forgejo-src-8.0.0/custom/conf/app.example.ini forgejo-src-8.0.0-patche
;;
;; Application run mode, affects performance and debugging: "dev" or "prod", default is "prod"
;; Mode "dev" makes Gitea easier to develop and debug, values other than "dev" are treated as "prod" which is for production use.
@@ -284,15 +284,17 @@
@@ -284,15 +284,15 @@
;; $ openssl pkcs12 -in cert.pfx -out cert.pem -nokeys
;; $ openssl pkcs12 -in cert.pfx -out key.pem -nocerts -nodes
;; Paths are relative to CUSTOM_PATH
@@ -21,39 +21,34 @@ diff -rub forgejo-src-8.0.0/custom/conf/app.example.ini forgejo-src-8.0.0-patche
;;
;; Root directory containing templates and static files.
;; default is the path where Gitea is executed
;STATIC_ROOT_PATH = ; Will default to the built-in value _`StaticRootPath`_
-;STATIC_ROOT_PATH = ; Will default to the built-in value _`StaticRootPath`_
+STATIC_ROOT_PATH = /usr/share/forgejo
;;
;; Default path for App data
;APP_DATA_PATH = data ; relative paths will be made absolute with _`AppWorkPath`_
+APP_DATA_PATH = /var/lib/forgejo/data
-;APP_DATA_PATH = data ; relative paths will be made absolute with _`AppWorkPath`_
+;APP_DATA_PATH = /var/lib/forgejo/data
;;
;; Enable gzip compression for runtime-generated content, static resources excluded
;ENABLE_GZIP = false
@@ -304,6 +306,7 @@
@@ -303,7 +303,7 @@
;ENABLE_PPROF = false
;;
;; PPROF_DATA_PATH, use an absolute path when you start gitea as service
;PPROF_DATA_PATH = data/tmp/pprof ; Path is relative to _`AppWorkPath`_
-;PPROF_DATA_PATH = data/tmp/pprof ; Path is relative to _`AppWorkPath`_
+PPROF_DATA_PATH = /var/lib/forgejo/data/tmp/pprof
;;
;; Landing page, can be "home", "explore", "organizations", "login", or any URL such as "/org/repo" or even "https://anotherwebsite.com"
;; The "login" choice is not a security measure but just a UI flow change, use REQUIRE_SIGNIN_VIEW to force users to log in.
@@ -355,10 +358,10 @@
@@ -370,7 +370,7 @@
;;
;; MySQL Configuration
;;
-DB_TYPE = mysql
-HOST = 127.0.0.1:3306 ; can use socket e.g. /var/run/mysqld/mysqld.sock
-NAME = gitea
-USER = root
+;DB_TYPE = mysql
+;HOST = 127.0.0.1:3306 ; can use socket e.g. /var/run/mysqld/mysqld.sock
;DB_TYPE = mysql
;HOST = 127.0.0.1:3306 ; can use socket e.g. /var/run/mysqld/mysqld.sock
-;NAME = gitea
+;NAME = forgejo
+;USER = root
;USER = root
;PASSWD = ;Use PASSWD = `your password` for quoting if you use special characters in the password.
;SSL_MODE = false ; either "false" (default), "true", or "skip-verify"
;CHARSET_COLLATION = ; Empty as default, Gitea will try to find a case-sensitive collation. Don't change it unless you clearly know what you need.
@@ -369,7 +372,7 @@
@@ -382,7 +382,7 @@
;;
;DB_TYPE = postgres
;HOST = 127.0.0.1:5432 ; can use socket e.g. /var/run/postgresql/
@@ -62,33 +57,7 @@ diff -rub forgejo-src-8.0.0/custom/conf/app.example.ini forgejo-src-8.0.0-patche
;USER = root
;PASSWD =
;SCHEMA =
@@ -379,21 +382,10 @@
;;
;; SQLite Configuration
;;
-;DB_TYPE = sqlite3
-;PATH= ; defaults to data/forgejo.db
-;SQLITE_TIMEOUT = ; Query timeout defaults to: 500
-;SQLITE_JOURNAL_MODE = ; defaults to sqlite database default (often DELETE), can be used to enable WAL mode. https://www.sqlite.org/pragma.html#pragma_journal_mode
-;;
-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-;;
-;; MSSQL Configuration
-;;
-;DB_TYPE = mssql
-;HOST = 172.17.0.2:1433
-;NAME = gitea
-;USER = SA
-;PASSWD = MwantsaSecurePassword1
-;CHARSET_COLLATION = ; Empty as default, Gitea will try to find a case-sensitive collation. Don't change it unless you clearly know what you need.
+DB_TYPE = sqlite3
+PATH= /var/lib/forgejo/data/forgejo.db ; defaults to data/forgejo.db
+SQLITE_TIMEOUT = ; Query timeout defaults to: 500
+SQLITE_JOURNAL_MODE = ; defaults to sqlite database default (often DELETE), can be used to enable WAL mode. https://www.sqlite.org/pragma.html#pragma_journal_mode
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
@@ -579,14 +571,14 @@
@@ -573,14 +573,14 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Root path for the log files - defaults to %(GITEA_WORK_DIR)/log
@@ -105,7 +74,7 @@ diff -rub forgejo-src-8.0.0/custom/conf/app.example.ini forgejo-src-8.0.0-patche
;;
;; Either "Trace", "Debug", "Info", "Warn", "Error" or "None", default is "Info"
LEVEL = Info
@@ -946,7 +938,7 @@
@@ -962,7 +962,7 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Root path for storing all repository data. By default, it is set to %(APP_DATA_PATH)s/gitea-repositories.
;; A relative path is interpreted as _`AppWorkPath`_/%(ROOT)s
@@ -114,7 +83,7 @@ diff -rub forgejo-src-8.0.0/custom/conf/app.example.ini forgejo-src-8.0.0-patche
;;
;; The script type this server supports. Usually this is `bash`, but some users report that only `sh` is available.
;SCRIPT_TYPE = bash
@@ -1065,7 +1057,7 @@
@@ -1081,7 +1081,7 @@
;ENABLED = true
;;
;; Path for uploads. Defaults to `data/tmp/uploads` (content gets deleted on gitea restart)
@@ -123,42 +92,43 @@ diff -rub forgejo-src-8.0.0/custom/conf/app.example.ini forgejo-src-8.0.0-patche
;;
;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
;ALLOWED_TYPES =
@@ -1444,7 +1436,7 @@
@@ -1460,7 +1460,7 @@
;ISSUE_INDEXER_TYPE = bleve
;;
;; Issue indexer storage path, available when ISSUE_INDEXER_TYPE is bleve
-;ISSUE_INDEXER_PATH = indexers/issues.bleve ; Relative paths will be made absolute against _`AppWorkPath`_.
+;ISSUE_INDEXER_PATH = /var/lib/forgejo/indexers/issues.bleve ; Relative paths will be made absolute against _`AppWorkPath`_.
+ISSUE_INDEXER_PATH = /var/lib/forgejo/indexers/issues.bleve
;;
;; Issue indexer connection string, available when ISSUE_INDEXER_TYPE is elasticsearch (e.g. http://elastic:password@localhost:9200) or meilisearch (e.g. http://:apikey@localhost:7700)
;ISSUE_INDEXER_CONN_STR =
@@ -1471,7 +1463,7 @@
@@ -1487,7 +1487,7 @@
;REPO_INDEXER_TYPE = bleve
;;
;; Index file used for code search. available when `REPO_INDEXER_TYPE` is bleve
-;REPO_INDEXER_PATH = indexers/repos.bleve
+;REPO_INDEXER_PATH = /var/lib/forgejo/indexers/repos.bleve
+REPO_INDEXER_PATH = /var/lib/forgejo/indexers.bleve
;;
;; Code indexer connection string, available when `REPO_INDEXER_TYPE` is elasticsearch. i.e. http://elastic:changeme@localhost:9200
;REPO_INDEXER_CONN_STR =
@@ -1510,6 +1502,7 @@
@@ -1525,7 +1525,7 @@
;TYPE = persistable-channel
;;
;; data-dir for storing persistable queues and level queues, individual queues will default to `queues/common` meaning the queue is shared.
;DATADIR = queues/ ; Relative paths will be made absolute against `%(APP_DATA_PATH)s`.
+DATADIR = /var/lib/forgejo/queues/
-;DATADIR = queues/ ; Relative paths will be made absolute against `%(APP_DATA_PATH)s`.
+DATADIR = /var/lib/forgejo/queues
;;
;; Default queue length before a channel queue will block
;LENGTH = 100000
@@ -1852,7 +1845,7 @@
@@ -1872,7 +1872,7 @@
;; file: session file path, e.g. `data/sessions`
;; redis: `redis://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s` (or `redis+cluster://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s` for a Redis cluster)
;; mysql: go-sql-driver/mysql dsn config string, e.g. `root:password@/session_table`
-;PROVIDER_CONFIG = data/sessions ; Relative paths will be made absolute against _`AppWorkPath`_.
+;PROVIDER_CONFIG = /var/lib/forgejo/data/sessions ; Relative paths will be made absolute against _`AppWorkPath`_.
+PROVIDER_CONFIG = /var/lib/forgejo/data/sessions
;;
;; Session cookie name
;COOKIE_NAME = i_like_gitea
@@ -1939,7 +1932,7 @@
@@ -1959,7 +1959,7 @@
;;
;; Path for attachments. Defaults to `attachments`. Only available when STORAGE_TYPE is `local`
;; Relative paths will be resolved to `${AppDataPath}/${attachment.PATH}`
@@ -167,7 +137,7 @@ diff -rub forgejo-src-8.0.0/custom/conf/app.example.ini forgejo-src-8.0.0-patche
;;
;; Minio endpoint to connect only available when STORAGE_TYPE is `minio`
;MINIO_ENDPOINT = localhost:9000
@@ -1965,7 +1958,7 @@
@@ -1985,7 +1985,7 @@
;MINIO_LOCATION = us-east-1
;;
;; Minio base path on the bucket only available when STORAGE_TYPE is `minio`
@@ -176,7 +146,7 @@ diff -rub forgejo-src-8.0.0/custom/conf/app.example.ini forgejo-src-8.0.0-patche
;;
;; Minio enabled ssl only available when STORAGE_TYPE is `minio`
;MINIO_USE_SSL = false
@@ -2548,10 +2541,10 @@
@@ -2568,10 +2568,10 @@
;;
;STORAGE_TYPE = local
;; override the minio base path if storage type is minio
@@ -189,7 +159,7 @@ diff -rub forgejo-src-8.0.0/custom/conf/app.example.ini forgejo-src-8.0.0-patche
;;
;; Maximum count of package versions a single owner can have (`-1` means no limits)
;LIMIT_TOTAL_OWNER_COUNT = -1
@@ -2618,10 +2611,10 @@
@@ -2640,10 +2640,10 @@
;STORAGE_TYPE = local
;;
;; Where your lfs files reside, default is data/lfs.
@@ -202,7 +172,7 @@ diff -rub forgejo-src-8.0.0/custom/conf/app.example.ini forgejo-src-8.0.0-patche
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -2641,10 +2634,10 @@
@@ -2663,10 +2663,10 @@
;STORAGE_TYPE = local
;;
;; Where your lfs files reside, default is data/lfs.

View File

@@ -0,0 +1,29 @@
include <abstractions/base>
include <abstractions/mysql>
include <abstractions/nameservice>
include <abstractions/openssl>
include <abstractions/user-tmp>
/usr/bin/forgejo rm,
/etc/machine-id r,
/sys/kernel/mm/transparent_hugepage/hpage_pmd_size r,
@{PROC}/sys/net/core/somaxconn r,
/etc/forgejo/ r,
/etc/forgejo/conf/app.ini r,
/etc/forgejo/public/ r,
/etc/forgejo/public/** r,
/etc/forgejo/{conf,https,mailer}/ r,
/usr/share/forgejo/** r,
/usr/lib{,exec}/git/git Px -> forgejo//git,
/usr/lib{,exec}/git/git-write-tree Px -> forgejo//git,
/usr/share/mime/globs2 r,
/etc/mime.types r,
include if exists <forgejo.d/forgejo.d>
include if exists <locatl/usr.bin.forgejo>
include if exists <local/forgejo>

View File

@@ -0,0 +1,9 @@
include <abstractions/base>
include <abstractions/bash>
include <abstractions/consoles>
/usr/bin/bash ix,
/usr/bin/env rPx -> forgejo//simple_tool,
/usr/bin/cat rPx -> forgejo//simple_tool,
/usr/bin/basename rPx -> forgejo//simple_tool,

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2054f0dce0eb8be6e1a8e765d931ee515241e09fe6928ecbb698447c73c11e6f
size 55923384

View File

@@ -0,0 +1,7 @@
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQQPUnz5Oj0NCSXTxV7QqCAFDhYJ5QUCaSBeUAAKCRDQqCAFDhYJ
5dmdAQD1i98A1+lm6c4GYczfSsVcanNimulPK9en1IX74Tn4HwD/fJVK5vs9uZTl
ZGyG+QDvgtNTUOcV+1DpEplRrVFCZwU=
=OVCU
-----END PGP SIGNATURE-----

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:647efd8b70e312e1d8aa349a535bae1c9cce5c095a7a2ebe0d0b0ec84ff1e198
size 55031691

View File

@@ -1,7 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQTrEU9ebA3CvN0YNVCkthotxZI3EAUCZoWjbAAKCRCkthotxZI3
EOPsAQDia3FAbVWnztj3h+SqLvI+7faAzVy2IMGsQpOrPuHleAEAsf+PqLn3rzz2
CWqTPCo4MWRuYUi6ELY3SS4Xug/DgAM=
=DqT0
-----END PGP SIGNATURE-----

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b33ca271d4d8ecf00ce80d2ee14888d40265ab648b880fd9bb9916bf9e88b15b
size 53489756

View File

@@ -1,7 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQTrEU9ebA3CvN0YNVCkthotxZI3EAUCZqjZygAKCRCkthotxZI3
EJmNAP9IiHThCEotiYrOt3YzdOeaEAM3vfLzyf4PN1jWibbiogEAzGyWuho+MH8z
9TqdaLJIF/T3L62r/TgZ+mlZ0HHkLQM=
=ExB8
-----END PGP SIGNATURE-----

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:284b2cc2a609d1766bb61f20cea7c6a9e2a34a9972f243d4962df2a24d15204a
size 53413049

View File

@@ -1,7 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQTrEU9ebA3CvN0YNVCkthotxZI3EAUCZrYYFgAKCRCkthotxZI3
EHz8AP90KeP3zRxXpllCJkXngANdUYN4wajU50u8p73dUY2jWAD/Wn87xN7RbrVd
0U3wPsUy4Memvg4WYavNWBOEwDtTtww=
=JG8G
-----END PGP SIGNATURE-----

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:36929dbc206753f80766ea59b35adaf3cb28ed53fc89ac8640271f8766673546
size 53459258

View File

@@ -1,7 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQTrEU9ebA3CvN0YNVCkthotxZI3EAUCZtB4+QAKCRCkthotxZI3
EI/zAQCAYMjC1aNDQi173NnEsZ+6157ZngCPoT9YB3gzzmOaFAD+LQEyZ3PrsrJe
/d8N+5Wyvj7ymLsUWzyTNpVZOtaNjQM=
=jAB5
-----END PGP SIGNATURE-----

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b543532cf01453967c331063639b172600cccd62d815e6815a4f05a25a0b0795
size 53477625

View File

@@ -1,7 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iHUEABYIAB0WIQTrEU9ebA3CvN0YNVCkthotxZI3EAUCZtsxWAAKCRCkthotxZI3
EAh8AP90yVVcubO3mXqS/+WHEMdpUTd6jjLt7zMKSX3yHHU2qQEA0p0lql1rQB+Z
MlThqgELrTiJexK2AbxVadvxRFKBqQc=
=tHBI
-----END PGP SIGNATURE-----

View File

@@ -2,63 +2,156 @@ abi <abi/3.0>,
include <tunables/global>
profile forgejo /usr/bin/forgejo flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/mysql>
include <abstractions/nameservice>
include <abstractions/opencl-pocl>
include <abstractions/openssl>
include <abstractions/user-tmp>
include if exists <local/usr.bin.forgejo>
@{APP_DATADIR} = /var/lib/forgejo
@{APP_REPOSITORY_DIRS} = @{APP_DATADIR}/data/forgejo-repositories @{APP_DATADIR}/repositories
network inet stream,
profile forgejo /usr/bin/forgejo flags=(attach_disconnected) {
include <abstractions/forgejo>
network inet stream,
network inet6 stream,
/etc/forgejo/ r,
/etc/forgejo/conf/app.ini r,
/etc/forgejo/public/ r,
/etc/forgejo/public/** r,
/etc/forgejo/{conf,https,mailer}/ r,
/etc/gitconfig r,
/etc/mime.types r,
/sys/kernel/mm/transparent_hugepage/hpage_pmd_size r,
/usr/bin/forgejo mr,
/usr/bin/git mr,
/usr/bin/gzip mr,
/usr/bin/{basename,env,git,git-lfs,forgejo,ssh-keygen,gzip} ix,
/usr/libexec/git/git-write-tree mrix,
/usr/share/forgejo/** r,
/usr/share/forgejo/.gitconfig rw,
/usr/share/forgejo/.gitconfig.lock rw,
/usr/share/git-core/templates/ r,
/usr/share/git-core/templates/** r,
/usr/share/mime/globs2 r,
/usr/{lib,libexec}/git/git ix,
/usr/{lib,libexec}/git/git-remote-http ix,
/var/ r,
/var/lib/ r,
/var/lib/forgejo/ r,
/var/lib/forgejo/.local/** rw,
/var/lib/forgejo/.ssh/ rw,
/var/lib/forgejo/.ssh/* rw,
/var/log/forgejo/ rw,
/var/log/forgejo/access.log rw,
/var/log/forgejo/access.log.* w,
/var/log/forgejo/doctors-* rw,
@{PROC}/sys/net/core/somaxconn r,
owner /etc/forgejo/conf/app.ini w,
owner /tmp/forgejo** rwl,
owner /tmp/index* rw,
owner /tmp/patch* rw,
owner /usr/share/forgejo/** rw,
owner /var/lib/forgejo/backups/forgejo-dump-*.{zip,tar.gz,tar.xz} rw,
owner /var/lib/forgejo/data/forgejo-repositories/** rwlk,
owner /var/lib/forgejo/data/forgejo-repositories/**.git/hooks/** ix,
owner /var/lib/forgejo/https/** rwlk,
owner /var/lib/forgejo/{data,indexers,queues,repositories,backups}/ r,
owner /var/lib/forgejo/{data,indexers,queues,repositories}/** rwk,
owner /var/log/forgejo/gitea.log w,
owner @{PROC}/@{pid}/fd/ r,
owner @{PROC}/@{pid}/{cgroup,cpuset,status,stat,limits} r,
/usr/bin/forgejo Cx -> forgejo-session-exec,
signal (send) peer=forgejo//*,
profile forgejo-session-exec {
include <abstractions/forgejo>
include if exists <forgejo.d/forgejo-session-exec.d>
include if exists <local/forgejo-session-exec>
}
profile forgejo-hooks {
include <abstractions/forgejo>
include if exists <forgejo.d/forgejo-hooks.d>
include if exists <local/forgejo-hooks>
}
profile git {
include <abstractions/base>
include <abstractions/nameservice>
include <abstractions/openssl>
include <abstractions/ssl_certs>
signal (receive) peer=forgejo,
/etc/gitconfig r,
/usr/lib{,exec}/git/* rmix,
/usr/share/git-core/** r,
/usr/bin/bash Px -> forgejo//git-bash,
owner @{APP_DATADIR}/data/home/.gitconfig rwlk,
owner @{APP_DATADIR}/data/home/.gitconfig.lock rwlk,
owner @{APP_REPOSITORY_DIRS}/ r,
owner @{APP_REPOSITORY_DIRS}/** rwlk,
owner @{APP_REPOSITORY_DIRS}/*/*.git/hooks/pre-receive Px -> forgejo//hooks-pre-receive,
owner @{APP_REPOSITORY_DIRS}/*/*.git/hooks/post-receive Px -> forgejo//hooks-post-receive,
owner @{APP_REPOSITORY_DIRS}/*/*.git/hooks/proc-receive Px -> forgejo//hooks-proc-receive,
owner @{APP_REPOSITORY_DIRS}/*/*.git/hooks/update Px -> forgejo//hooks-update,
owner @{APP_DATADIR}/data/tmp/local-repo/pull.*/ r,
owner @{APP_DATADIR}/data/tmp/local-repo/pull.*/** rwlk,
owner @{APP_DATADIR}/data/tmp/local-repo/update-wiki*/ r,
owner @{APP_DATADIR}/data/tmp/local-repo/update-wiki*/** rwlk,
include if exists <forgejo.d/git.d>
include if exists <local/forgejo-git>
}
profile git-bash {
include <abstractions/base>
include <abstractions/bash>
include <abstractions/consoles>
/usr/bin/bash rm,
/usr/lib{,exec}/git/git Px -> forgejo//git,
/usr/lib{,exec}/git/git-write-tree Px -> forgejo//git,
}
profile hooks-pre-receive {
include <abstractions/forgejo-hooks>
owner @{APP_REPOSITORY_DIRS}/*/*/hooks/pre-receive r,
owner @{APP_REPOSITORY_DIRS}/*/*/hooks/pre-receive.d/ r,
owner @{APP_REPOSITORY_DIRS}/*/*/hooks/pre-receive.d/gitea Px -> forgejo//hooks-gitea,
include if exists <forgejo.d/hooks-pre-receive.d>
include if exists <local/forgejo-hooks-pre-receive>
}
profile hooks-post-receive {
include <abstractions/forgejo-hooks>
owner @{APP_REPOSITORY_DIRS}/*/*/hooks/post-receive r,
owner @{APP_REPOSITORY_DIRS}/*/*/hooks/post-receive.d/ r,
owner @{APP_REPOSITORY_DIRS}/*/*/hooks/post-receive.d/gitea Px -> forgejo//hooks-gitea,
include if exists <forgejo.d/hooks-post-receive.d>
include if exists <local/forgejo-hooks-post-receive>
}
profile hooks-proc-receive {
include <abstractions/forgejo-hooks>
owner @{APP_REPOSITORY_DIRS}/*/*/hooks/proc-receive r,
owner @{APP_REPOSITORY_DIRS}/*/*/hooks/proc-receive.d/ r,
owner @{APP_REPOSITORY_DIRS}/*/*/hooks/proc-receive.d/gitea Px -> forgejo//hooks-gitea,
include if exists <forgejo.d/hooks-proc-receive.d>
include if exists <local/forgejo-hooks-proc-receive>
}
profile hooks-update {
include <abstractions/forgejo-hooks>
owner @{APP_REPOSITORY_DIRS}/*/*/hooks/update r,
owner @{APP_REPOSITORY_DIRS}/*/*/hooks/update.d/ r,
owner @{APP_REPOSITORY_DIRS}/*/*/hooks/update.d/gitea Px -> forgejo//hooks-gitea,
include if exists <forgejo.d/hooks-update.d>
include if exists <local/forgejo-hooks-update>
}
profile hooks-gitea {
include <abstractions/forgejo-hooks>
owner @{APP_REPOSITORY_DIRS}/*/*/hooks/*.d/gitea r,
/usr/bin/forgejo Px -> forgejo//forgejo-hooks,
}
profile simple_tool {
include <abstractions/base>
/usr/bin/env rm,
/usr/bin/cat rm,
/usr/bin/basename rm,
}
owner @{APP_DATADIR}/ r,
owner @{APP_DATADIR}/data/ r,
owner @{APP_DATADIR}/data/** rwlk,
owner @{APP_DATADIR}/https/ r,
owner @{APP_DATADIR}/https/** rwlk,
owner @{APP_DATADIR}/indexers/ r,
owner @{APP_DATADIR}/indexers/** rwlk,
owner @{APP_DATADIR}/queues/ r,
owner @{APP_DATADIR}/queues/** rwlk,
owner @{APP_REPOSITORY_DIRS}/ r,
owner @{APP_REPOSITORY_DIRS}/** rwlk,
owner /var/log/forgejo/ r,
owner /var/log/forgejo/gitea.log* rwlk,
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,39 +1,64 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: Hostname:
Version: Hockeypuck 2.2
Comment: EB11 4F5E 6C0D C2BC DD18 3550 A4B6 1A2D C592 3710
Comment: Forgejo <contact@forgejo.org>
Comment: Forgejo Releases <release@forgejo.org>
xjMEY3T/yhYJKwYBBAHaRw8BAQdAVxqCQrSbpDNrx8CiTM8PUAVqdCyv2UmBDhpP
HZIpoIDNHUZvcmdlam8gPGNvbnRhY3RAZm9yZ2Vqby5vcmc+wsB+BBMWCgDmAhsD
BQsJCAcDBRUKCQgLBRYCAwEAAh4BAheAAhkBFiEE6xFPXmwNwrzdGDVQpLYaLcWS
NxAFAmN7KZI2FIAAAAAAEAAdcHJvb2ZAYXJpYWRuZS5pZGh0dHBzOi8vZmxvc3Mu
c29jaWFsL0Bmb3JnZWpvMRSAAAAAABAAGHByb29mQGFyaWFkbmUuaWRkbnM6Zm9y
Z2Vqby5vcmc/dHlwZT1UWFRBFIAAAAAAEAAocHJvb2ZAYXJpYWRuZS5pZGh0dHBz
Oi8vY29kZWJlcmcub3JnL2Zvcmdlam8vZ2l0ZWFfcHJvb2YACgkQpLYaLcWSNxAv
oQEAsbFLqcqjAoRTKpP++D6s0pZgnekV7W3sz1uumKLLUm4A/RvjfnPaK9XAZHEn
o0RDksu0xaw673pPmYXWVYQqdVACwsBHBBMWCgCvAhsDBQsJCAcDBRUKCQgLBRYC
AwEAAh4BAheAAhkBFiEE6xFPXmwNwrzdGDVQpLYaLcWSNxAFAmN4pwNBFIAAAAAA
EAAocHJvb2ZAYXJpYWRuZS5pZGh0dHBzOi8vY29kZWJlcmcub3JnL2Zvcmdlam8v
Z2l0ZWFfcHJvb2YxFIAAAAAAEAAYcHJvb2ZAYXJpYWRuZS5pZGRuczpmb3JnZWpv
Lm9yZz90eXBlPVRYVAAKCRCkthotxZI3EDVfAQCX3Bwc7JFu/JSVSXkMAiO9KqKz
oQv0FKfNI4zc7OZTuwEAro2IK2nt72W/+O+rHMDN97n0qQYLjcEy2wiOguYPPgfC
dQQQFggAHRYhBD3JQbKWDZMPhcHxD2Hhmc0+gu5GBQJjkUDQAAoJEGHhmc0+gu5G
/noA/2Nhnj9ec6GFil+yzfcaf2JYZnTkOYuhxhHhLVVDc2u2AQDNClLXyLeOp8YQ
r3sDEVLIf8IUpmRyhdf5lnR7dOXADc0mRm9yZ2VqbyBSZWxlYXNlcyA8cmVsZWFz
ZUBmb3JnZWpvLm9yZz7CkAQTFgoAOAIbAwULCQgHAwUVCgkICwUWAgMBAAIeAQIX
gBYhBOsRT15sDcK83Rg1UKS2Gi3FkjcQBQJjeKH0AAoJEKS2Gi3FkjcQC5YBAKwC
GFDDSpX0JwBrzIP8W8ElwHvdBz2XDg8LwyQgr722AP9r01rbFwY4axDxpNj+BUFx
wD5Fhza1cE3932eTsSOPDsJ1BBAWCAAdFiEEPclBspYNkw+FwfEPYeGZzT6C7kYF
AmORQNAACgkQYeGZzT6C7kZgCQD9E3NRV6SUBw7IdbIG9w0oUcn/RMsSmTXMAmas
LO3ilCUBAPVs56RxvNdA5cLJeZwRlqZ10nnJekb2wnQPyohB2GcOzjMEY3UANBYJ
KwYBBAHaRw8BAQdAKvAs2Ij2RamYUzz4sBgsc2J+4fEwvSMcTp6rPZizRhfCwDUE
GBYIACYWIQTrEU9ebA3CvN0YNVCkthotxZI3EAUCY3UANAIbAgUJAeEzgACBCRCk
thotxZI3EHYgBBkWCAAdFiEE98vwIJTnZl4X7WxE44G/PlDVNwcFAmN1ADQACgkQ
44G/PlDVNwdIlgD+K15nuEec+VTFdP7YY3SxM8Rjg2EtXk007+LM7XQfN9sBAOLj
BTzIdaaKOpoAkGQ9Th/IphSUOnPYZVO5a6cN+wAM458A/itf3urQehI5SbKtbRqI
DhqQZQVAcEeG2eQFunuofjDWAQDt/gE5XgTiQgnkTcqAX7GQeE74O/Q5vDtX10Nj
bzV7D844BGN0/8oSCisGAQQBl1UBBQEBB0CZnRfIHxTVhOF8kdhbe4YJsePyVFi8
USfuDXy4HgIHRgMBCAfCeAQYFggAIBYhBOsRT15sDcK83Rg1UKS2Gi3FkjcQBQJj
dP/KAhsMAAoJEKS2Gi3FkjcQdroA/jHFqt7y/r/5zdK4TYYp+5jlOgM5ZI7pNhWh
tIFbqmx9AQCKSJf2YgPBLNJSL/86vpE9b6IvTE/8ENR/7xYaIA7oAg==
=urT2
NxAFAmSc08VBFIAAAAAAEAAocHJvb2ZAYXJpYWRuZS5pZGh0dHBzOi8vY29kZWJl
cmcub3JnL2Zvcmdlam8vZ2l0ZWFfcHJvb2Y2FIAAAAAAEAAdcHJvb2ZAYXJpYWRu
ZS5pZGh0dHBzOi8vZmxvc3Muc29jaWFsL0Bmb3JnZWpvMRSAAAAAABAAGHByb29m
QGFyaWFkbmUuaWRkbnM6Zm9yZ2Vqby5vcmc/dHlwZT1UWFQACgkQpLYaLcWSNxDM
2wEA6bOel3R25z3YUXL4hI2S8jRkJbOQawq0vgUnYNgS9hcBAK2zq4Zt4ctvSB+x
TqhR6Zi6aqSD3QrRnUVvV1xZhdkEwsCABBMWCgDoAhsDBQsJCAcDBRUKCQgLBRYC
AwEAAh4BAheAAhkBFiEE6xFPXmwNwrzdGDVQpLYaLcWSNxAFAmScz7JDFIAAAAAA
EAAqcHJvb2ZAYXJpYWRuZS5pZGh0dHBzOi8vY29kZWJlcmcub3JnL2Zvcmdlam8v
Zm9yZ2Vqb19wcm9vZjYUgAAAAAAQAB1wcm9vZkBhcmlhZG5lLmlkaHR0cHM6Ly9m
bG9zcy5zb2NpYWwvQGZvcmdlam8xFIAAAAAAEAAYcHJvb2ZAYXJpYWRuZS5pZGRu
czpmb3JnZWpvLm9yZz90eXBlPVRYVAAKCRCkthotxZI3EBJ1AP9UeN1HFGz90r34
PGrOj1225HfJzdWgamEUkEKEwShcIQD+K/o7sLJM+C/mJXaCixAZgvRd9/rYq27T
9Y2rTQybSwnCwH4EExYKAOYCGwMFCwkIBwMFFQoJCAsFFgIDAQACHgECF4ACGQEW
IQTrEU9ebA3CvN0YNVCkthotxZI3EAUCY3spkjYUgAAAAAAQAB1wcm9vZkBhcmlh
ZG5lLmlkaHR0cHM6Ly9mbG9zcy5zb2NpYWwvQGZvcmdlam8xFIAAAAAAEAAYcHJv
b2ZAYXJpYWRuZS5pZGRuczpmb3JnZWpvLm9yZz90eXBlPVRYVEEUgAAAAAAQAChw
cm9vZkBhcmlhZG5lLmlkaHR0cHM6Ly9jb2RlYmVyZy5vcmcvZm9yZ2Vqby9naXRl
YV9wcm9vZgAKCRCkthotxZI3EC+hAQCxsUupyqMChFMqk/74PqzSlmCd6RXtbezP
W66YostSbgD9G+N+c9or1cBkcSejREOSy7TFrDrvek+ZhdZVhCp1UALCwEcEExYK
AK8CGwMFCwkIBwMFFQoJCAsFFgIDAQACHgECF4ACGQEWIQTrEU9ebA3CvN0YNVCk
thotxZI3EAUCY3inA0EUgAAAAAAQAChwcm9vZkBhcmlhZG5lLmlkaHR0cHM6Ly9j
b2RlYmVyZy5vcmcvZm9yZ2Vqby9naXRlYV9wcm9vZjEUgAAAAAAQABhwcm9vZkBh
cmlhZG5lLmlkZG5zOmZvcmdlam8ub3JnP3R5cGU9VFhUAAoJEKS2Gi3FkjcQNV8B
AJfcHBzskW78lJVJeQwCI70qorOhC/QUp80jjNzs5lO7AQCujYgrae3vZb/476sc
wM33ufSpBguNwTLbCI6C5g8+B80mRm9yZ2VqbyBSZWxlYXNlcyA8cmVsZWFzZUBm
b3JnZWpvLm9yZz7CkAQTFgoAOAIbAwULCQgHAwUVCgkICwUWAgMBAAIeAQIXgBYh
BOsRT15sDcK83Rg1UKS2Gi3FkjcQBQJjeKH0AAoJEKS2Gi3FkjcQC5YBAKwCGFDD
SpX0JwBrzIP8W8ElwHvdBz2XDg8LwyQgr722AP9r01rbFwY4axDxpNj+BUFxwD5F
hza1cE3932eTsSOPDsKQBBMWCAA4FiEE6xFPXmwNwrzdGDVQpLYaLcWSNxAFAmN4
k+kCGwMFCwkIBwMFFQoJCAsFFgIDAQACHgECF4AACgkQpLYaLcWSNxBHrQD+PFo/
ii8p72HP0KsJbHPGnS/Sk9pFGd16fs1Hd88JHj0A/10XNyGQgwbe+X+K/a97vWW8
vAzA1EtFIMfCGhIO8EoIzjMEY3UANBYJKwYBBAHaRw8BAQdAKvAs2Ij2RamYUzz4
sBgsc2J+4fEwvSMcTp6rPZizRhfCwDUEGBYIACYWIQTrEU9ebA3CvN0YNVCkthot
xZI3EAUCY3UANAIbAgUJAeEzgACBCRCkthotxZI3EHYgBBkWCAAdFiEE98vwIJTn
Zl4X7WxE44G/PlDVNwcFAmN1ADQACgkQ44G/PlDVNwdIlgD+K15nuEec+VTFdP7Y
Y3SxM8Rjg2EtXk007+LM7XQfN9sBAOLjBTzIdaaKOpoAkGQ9Th/IphSUOnPYZVO5
a6cN+wAM458A/itf3urQehI5SbKtbRqIDhqQZQVAcEeG2eQFunuofjDWAQDt/gE5
XgTiQgnkTcqAX7GQeE74O/Q5vDtX10NjbzV7D84zBGeOav0WCSsGAQQB2kcPAQEH
QI2JXHjIx25g9WZHNyjkdUiRBPl5Y1JjjJCPvXM0/9RjwsA1BBgWCAAmFiEE6xFP
XmwNwrzdGDVQpLYaLcWSNxAFAmeOav0CGwIFCQO1OAAAgQkQpLYaLcWSNxB2IAQZ
FggAHRYhBA9SfPk6PQ0JJdPFXtCoIAUOFgnlBQJnjmr9AAoJENCoIAUOFgnljUwA
+wSjU/mk4xGIlwzJdPnnNzIsiMeqtuYokbSrOIxXIhP1AP93qtVr+kOu3pDs9JC+
8CYG0DK1QD1LmlGP59WRGevSCXChAQDy6SCfnfcr5P4fYaz04+Tl0CDUkFOGP+sV
S/isPTssbAD9H2hKJKEmwuAd2MeFA3Bo3z5rUVWkfAcnv7Oy7u+OWQfOMwRlfHnh
FgkrBgEEAdpHDwEBB0DGoKPPOOx7rnqT318eykUkMJbk83MhcBqrecOADO3i2sLA
NQQYFggAJhYhBOsRT15sDcK83Rg1UKS2Gi3FkjcQBQJlfHnhAhsCBQkCx+oAAIEJ
EKS2Gi3FkjcQdiAEGRYIAB0WIQTfMxnqNtWZwdSmg9SzsfYKxXfyogUCZXx54QAK
CRCzsfYKxXfyoocRAP48OQpiBTkwC7kLLyuqVlP1t0hBQddr4i4rIV8Ug5tHzwEA
pl8Q+S4k/ROQS5FOhy7GBC337SncJFJYDD0pTcSecw+J3AEAn4qax72Oyfb0vaPY
m+WdqsfVBd2Hd2vJIwCjglp55B0BALIJE6nvACcKzTRUj7AQSLGvELGfJfM320xX
E0ZVBZkKzjgEY3T/yhIKKwYBBAGXVQEFAQEHQJmdF8gfFNWE4XyR2Ft7hgmx4/JU
WLxRJ+4NfLgeAgdGAwEIB8J4BBgWCAAgFiEE6xFPXmwNwrzdGDVQpLYaLcWSNxAF
AmN0/8oCGwwACgkQpLYaLcWSNxB2ugD+McWq3vL+v/nN0rhNhin7mOU6Azlkjuk2
FaG0gVuqbH0BAIpIl/ZiA8Es0lIv/zq+kT1voi9MT/wQ1H/vFhogDugC
=zbGk
-----END PGP PUBLIC KEY BLOCK-----

View File

@@ -13,7 +13,7 @@ WorkingDirectory=/var/lib/forgejo/
ExecStart=/usr/bin/forgejo web --config /etc/forgejo/conf/app.ini
Restart=always
Environment=USER=forgejo
Environment=HOME=/usr/share/forgejo
Environment=HOME=/var/lib/forgejo/data/home
Environment=GITEA_WORK_DIR=/var/lib/forgejo
Environment=GITEA_CUSTOM=/etc/forgejo
# added automatically, for details please see

View File

@@ -1,7 +1,7 @@
#
# spec file for package forgejo
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,43 +16,39 @@
#
%if 0%{?suse_version} > 1600
%if 0%{?suse_version} >= 1600
%bcond_without selinux
%bcond_without apparmor
%else
%if 0%{?suse_version} == 1600
%bcond_without selinux
%bcond_with apparmor
%else
# Leap & SLE
# Leap & SLE 15.X
%bcond_with selinux
%bcond_without apparmor
%endif
%endif
Name: forgejo
Version: 8.0.3
Version: 13.0.3
Release: 0
Summary: Self-hostable forge
License: MIT
License: GPL-3.0-or-later
Group: Development/Tools/Version Control
URL: https://forgejo.org
Source0: https://codeberg.org/%{name}/%{name}/releases/download/v%{version}/%{name}-src-%{version}.tar.gz
Source1: https://codeberg.org/%{name}/%{name}/releases/download/v%{version}/%{name}-src-%{version}.tar.gz.asc
Source2: http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xeb114f5e6c0dc2bcdd183550a4b61a2dc5923710#/%{name}.keyring
Source0: https://codeberg.org/forgejo/forgejo/releases/download/v%{version}/forgejo-src-%{version}.tar.gz
Source1: https://codeberg.org/forgejo/forgejo/releases/download/v%{version}/forgejo-src-%{version}.tar.gz.asc
Source2: https://keys.openpgp.org/vks/v1/by-fingerprint/EB114F5E6C0DC2BCDD183550A4B61A2DC5923710#/forgejo.keyring
Source3: package-lock.json
Source4: node_modules.spec.inc
%include %{_sourcedir}/node_modules.spec.inc
Source5: %{name}.service
Source6: %{name}.sysusers
Source7: %{name}.fc
Source8: %{name}.if
Source9: %{name}.te
Source10: %{name}.apparmor
Source11: %{name}.firewalld
Source99: get-sources.sh
Source5: forgejo.service
Source6: forgejo.sysusers
Source7: forgejo.fc
Source8: forgejo.if
Source9: forgejo.te
Source10: forgejo.apparmor
Source11: forgejo.firewalld
Source12: forgejo-abstraction.apparmor
Source13: forgejo-hooks-abstraction.apparmor
Source99: README.SUSE
Patch0: custom-app.ini.patch
BuildRequires: golang-packaging
BuildRequires: golang(API) = 1.22
BuildRequires: golang(API) >= 1.25
## node >= 20
%if 0%{?suse_version} == 1500
BuildRequires: nodejs-devel-default
@@ -60,6 +56,7 @@ BuildRequires: npm-default
%else
BuildRequires: nodejs-packaging
%endif
BuildRequires: fdupes
BuildRequires: firewall-macros
BuildRequires: firewalld
BuildRequires: local-npm-registry
@@ -68,9 +65,10 @@ BuildRequires: systemd-rpm-macros
BuildRequires: sysuser-tools
Requires: git-core
Requires: git-lfs
Requires: (%{name}-apparmor if apparmor-abstractions)
Requires: (%{name}-firewalld if firewalld)
Requires: (%{name}-selinux if selinux-policy-targeted)
Requires: (forgejo-apparmor if apparmor-abstractions)
Requires: (forgejo-firewalld if firewalld)
Requires: (forgejo-selinux if selinux-policy-targeted)
Conflicts: forgejo-longterm
%if %{with apparmor}
BuildRequires: apparmor-abstractions
BuildRequires: apparmor-rpm-macros
@@ -86,6 +84,7 @@ BuildRequires: selinux-policy-devel
%package firewalld
Summary: Firewalld profile for %{name}
BuildArch: noarch
Conflicts: forgejo-longterm-firewalld
%description firewalld
This package adds a firewalld service profile to %{name}
@@ -94,6 +93,7 @@ This package adds a firewalld service profile to %{name}
%package apparmor
Summary: Apparmor profile for %{name}
BuildArch: noarch
Conflicts: forgejo-longterm-apparmor
Requires: %{name} = %{version}-%{release}
%description apparmor
@@ -104,6 +104,7 @@ This package adds the Apparmor profile to %{name}
%package selinux
Summary: Selinux support for %{name}
BuildArch: noarch
Conflicts: forgejo-longterm-selinux
Requires: %{name} = %{version}-%{release}
Requires: selinux-policy-targeted
@@ -111,109 +112,165 @@ Requires: selinux-policy-targeted
This package adds SELinux enforcement to %{name}.
%endif
%package environment-to-ini
Summary: Configuration params via environment variables for %{name}
Conflicts: forgejo-longterm-environment-to-ini
Requires: %{name} = %{version}-%{release}
%description environment-to-ini
OCI Container users can change arbitrary configuration
via environment variables with this tool
Forgejo needs to use an ini file for configuration because the running
environment that starts the OCI container may not be the same as that used
by the hooks. An ini file also gives a good default and means that
users do not have to completely provide a full environment.
%description
Providing Git hosting for your project, friends, company or community? Forgejo (/for'd͡ʒe.jo/ inspired by forĝejo
the Esperanto word for forge) has you covered with its intuitive interface, light and easy hosting and a lot of builtin functionality.
Providing Git hosting for your project, friends, company or community? Forgejo
(/for'd͡ʒe.jo/ inspired by forĝejo the Esperanto word for forge) has you
covered with its intuitive interface, light and easy hosting and a lot of
builtin functionality.
%prep
%autosetup -p1 -n %{name}-src-%{version}
local-npm-registry %{_sourcedir} install --also=dev
%autosetup -p1 -n forgejo-src-%{version}
local-npm-registry %{_sourcedir} install --include=dev --legacy-peer-deps
cp %{SOURCE99} .
%build
%sysusers_generate_pre %{SOURCE6} %{name} %{name}.conf
%sysusers_generate_pre %{SOURCE6} forgejo forgejo.conf
export TAGS="timetzdata sqlite sqlite_unlock_notify"
export EXTRA_GOFLAGS="-buildmode=pie -mod=vendor"
export TAGS="bindata timetzdata sqlite sqlite_unlock_notify"
%make_build build
STRIP=0 %make_build build
go build ${EXTRA_GOFLAGS} -o contrib/environment-to-ini/environment-to-ini contrib/environment-to-ini/environment-to-ini.go
%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/%{name}
install -d %{buildroot}%{_datadir}/%{name}/{conf,https,mailer}
ln -s %{name} %{buildroot}%{_bindir}/gitea
install -d %{buildroot}%{_sharedstatedir}/%{name}/{data,https,indexers,queues,repositories}
install -d %{buildroot}%{_sysconfdir}/%{name}
install -d %{buildroot}%{_localstatedir}/log/%{name}
install -D -m 0644 %{_builddir}/%{name}-src-%{version}/custom/conf/app.example.ini %{buildroot}%{_sysconfdir}/%{name}/conf/app.ini
install -D -m 0755 %{_builddir}/%{name}-src-%{version}/gitea %{buildroot}%{_bindir}/%{name}
install -D -m 0644 %{SOURCE5} %{buildroot}%{_unitdir}/%{name}.service
install -D -m 0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/%{name}.conf
install -d -D \
%{buildroot}%{_bindir} %{buildroot}%{_datadir}/forgejo/{conf,https,mailer}
cp -r options %{buildroot}%{_datadir}/forgejo/
cp -r public %{buildroot}%{_datadir}/forgejo/
cp -r templates %{buildroot}%{_datadir}/forgejo/
install -d -m 0750 \
%{buildroot}%{_sharedstatedir}/forgejo/{data,https,indexers,queues,repositories} \
%{buildroot}%{_sharedstatedir}/forgejo/data/home/.ssh \
%{buildroot}%{_sysconfdir}/forgejo \
%{buildroot}%{_localstatedir}/log/forgejo
install -D -m 0755 contrib/environment-to-ini/environment-to-ini %{buildroot}%{_bindir}
install -D -m 0755 %{_builddir}/forgejo-src-%{version}/gitea %{buildroot}%{_bindir}/forgejo
ln -s forgejo %{buildroot}%{_bindir}/gitea
install -D -m 0640 %{_builddir}/forgejo-src-%{version}/custom/conf/app.example.ini %{buildroot}%{_sysconfdir}/forgejo/conf/app.ini
install -D -m 0644 %{SOURCE5} %{buildroot}%{_unitdir}/forgejo.service
install -D -m 0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/forgejo.conf
%if %{with apparmor}
install -d %{buildroot}%{_sysconfdir}/apparmor.d
install -Dm0644 %{SOURCE10} %{buildroot}%{_sysconfdir}/apparmor.d/usr.bin.%{name}
install -D -d \
%{buildroot}%{_sysconfdir}/apparmor.d/abstractions \
%{buildroot}%{_sysconfdir}/apparmor.d/forgejo.d \
%{buildroot}%{_sysconfdir}/apparmor.d/forgejo.d/forgejo-session-exec.d \
%{buildroot}%{_sysconfdir}/apparmor.d/forgejo.d/forgejo-hooks.d \
%{buildroot}%{_sysconfdir}/apparmor.d/forgejo.d/git.d \
%{buildroot}%{_sysconfdir}/apparmor.d/forgejo.d/hooks-pre-receive.d \
%{buildroot}%{_sysconfdir}/apparmor.d/forgejo.d/hooks-post-receive.d \
%{buildroot}%{_sysconfdir}/apparmor.d/forgejo.d/hooks-proc-receive.d \
%{buildroot}%{_sysconfdir}/apparmor.d/forgejo.d/hooks-update.d \
%{buildroot}%{_sysconfdir}/apparmor.d/forgejo.d/forgejo.d
install -Dm0644 %{SOURCE10} %{buildroot}%{_sysconfdir}/apparmor.d/forgejo
install -Dm0644 %{SOURCE12} %{buildroot}%{_sysconfdir}/apparmor.d/abstractions/forgejo
install -Dm0644 %{SOURCE13} %{buildroot}%{_sysconfdir}/apparmor.d/abstractions/forgejo-hooks
%endif
%if %{with selinux}
cd %{_sourcedir}
make -f %{_datadir}/selinux/devel/Makefile %{name}.pp
install -Dm0644 %{name}.pp %{buildroot}%{_datadir}/selinux/packages/%{name}/%{name}.pp
install -Dm0644 %{name}.if %{buildroot}%{_datadir}/selinux/devel/include/distributed/%{name}.if
make -f %{_datadir}/selinux/devel/Makefile forgejo.pp
install -Dm0644 forgejo.pp %{buildroot}%{_datadir}/selinux/packages/forgejo/forgejo.pp
install -Dm0644 forgejo.if %{buildroot}%{_datadir}/selinux/devel/include/distributed/forgejo.if
%endif
#firewalld service file
install -D -m 0644 %{SOURCE11} %{buildroot}%{_prefix}/lib/firewalld/services/%{name}.xml
install -D -m 0644 %{SOURCE11} %{buildroot}%{_prefix}/lib/firewalld/services/forgejo.xml
%pre -f %{name}.pre
%service_add_pre %{name}.service
%fdupes %{buildroot}
%pre -f forgejo.pre
%service_add_pre forgejo.service
%post
%service_add_post %{name}.service
if [ -e %{_datadir}/forgejo/.ssh/authorized_keys ] ; then
mv %{_datadir}/forgejo/.ssh/authorized_keys %{_sharedstatedir}/forgejo/data/home/.ssh/authorized_keys
fi
%service_add_post forgejo.service
%post firewalld
%firewalld_reload
%if %{with apparmor}
%post apparmor
%apparmor_reload %{_sysconfdir}/apparmor.d/usr.bin.%{name}
%apparmor_reload %{_sysconfdir}/apparmor.d/forgejo
%endif
%if %{with selinux}
%post selinux
semodule -i %{_datadir}/selinux/packages/%{name}/%{name}.pp 2>/dev/null || :
semodule -i %{_datadir}/selinux/packages/forgejo/forgejo.pp 2>/dev/null || :
%preun selinux
semodule -r %{name} 2>/dev/null || :
semodule -r forgejo 2>/dev/null || :
%endif
%preun
%service_del_preun %{name}.service
%service_del_preun forgejo.service
%postun
%service_del_postun %{name}.service
%check
#as of now, broken
#%%make_build test
%service_del_postun forgejo.service
%files
%license LICENSE
%doc README.md RELEASE-NOTES.md CONTRIBUTING.md
%{_unitdir}/%{name}.service
%{_bindir}/%{name}
%doc README.md RELEASE-NOTES.md CONTRIBUTING.md README.SUSE
%{_bindir}/forgejo
%{_bindir}/gitea
%defattr(0660,root,forgejo,770)
%{_localstatedir}/log/%{name}
%defattr(0660,forgejo,forgejo,750)
%config(noreplace) %{_sysconfdir}/%{name}/conf/app.ini
%{_sysconfdir}/%{name}
%{_datadir}/%{name}
%{_sharedstatedir}/%{name}
%{_sysusersdir}/%{name}.conf
%{_datadir}/forgejo
%{_sysusersdir}/forgejo.conf
%{_unitdir}/forgejo.service
%defattr(0640,root,forgejo,750)
%config(noreplace) %{_sysconfdir}/forgejo/conf/app.ini
%dir %{_sysconfdir}/forgejo
%dir %{_sysconfdir}/forgejo/conf
%defattr(0640,forgejo,forgejo,750)
%{_localstatedir}/log/forgejo
%{_sharedstatedir}/forgejo
%if %{with apparmor}
%files apparmor
%config %{_sysconfdir}/apparmor.d/abstractions/forgejo*
%config %{_sysconfdir}/apparmor.d/forgejo
%dir %{_sysconfdir}/apparmor.d
%config %{_sysconfdir}/apparmor.d/usr.bin.%{name}
%dir %{_sysconfdir}/apparmor.d/forgejo.d
%dir %{_sysconfdir}/apparmor.d/forgejo.d/forgejo-hooks.d
%dir %{_sysconfdir}/apparmor.d/forgejo.d/forgejo-session-exec.d
%dir %{_sysconfdir}/apparmor.d/forgejo.d/forgejo.d
%dir %{_sysconfdir}/apparmor.d/forgejo.d/git.d
%dir %{_sysconfdir}/apparmor.d/forgejo.d/hooks-post-receive.d
%dir %{_sysconfdir}/apparmor.d/forgejo.d/hooks-pre-receive.d
%dir %{_sysconfdir}/apparmor.d/forgejo.d/hooks-proc-receive.d
%dir %{_sysconfdir}/apparmor.d/forgejo.d/hooks-update.d
%endif
%if %{with selinux}
%files selinux
%dir %{_datadir}/selinux/devel/include/distributed
%{_datadir}/selinux/packages/%{name}
%{_datadir}/selinux/devel/include/distributed/%{name}.if
%{_datadir}/selinux/devel/include/distributed/forgejo.if
%{_datadir}/selinux/packages/forgejo
%endif
%files firewalld
%{_prefix}/lib/firewalld/services/%{name}.xml
%{_prefix}/lib/firewalld/services/forgejo.xml
%files environment-to-ini
%{_bindir}/environment-to-ini
%changelog

View File

@@ -1,3 +1,3 @@
# Type Name ID GECOS [HOME] Shell
g forgejo - - -
u forgejo - "Forgejo" /var/lib/forgejo /usr/bin/bash
u forgejo - "Forgejo" /var/lib/forgejo/data/home /usr/bin/bash

View File

@@ -1,41 +0,0 @@
#!/usr/bin/sh
set -e
if [[ -z "$1" ]]; then
echo "Please enter the version you want to update to";
exit 1;
fi
VERSION="$1"
echo "++++++++++++++++++++++++++++++++++++++++++++++"
echo "patching spec file and downloading the tarball"
echo "++++++++++++++++++++++++++++++++++++++++++++++"
sed -i -e 's|Version: .*|Version: '${VERSION}'|g' forgejo.spec
osc service ra download_files
echo "++++++++++++++++++++++++++++++++++++++++++++++"
echo "extracting package-lock.json"
echo "++++++++++++++++++++++++++++++++++++++++++++++"
tar xf forgejo-src-${VERSION}.tar.gz forgejo-src-${VERSION}/package-lock.json
cp forgejo-src-${VERSION}/package-lock.json .
echo "++++++++++++++++++++++++++++++++++++++++++++++"
echo "Downloading node_modules"
echo "++++++++++++++++++++++++++++++++++++++++++++++"
osc service ra node_modules
echo "++++++++++++++++++++++++++++++++++++++++++++++"
echo "Cleanup Step"
echo "++++++++++++++++++++++++++++++++++++++++++++++"
rm -r forgejo-src-${VERSION}
rm node_modules.sums
echo "++++++++++++++++++++++++++++++++++++++++++++++"
echo "Done! Have fun building and testing"
echo "++++++++++++++++++++++++++++++++++++++++++++++"

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dd1ad2428c1b1e75e403b81f397718994274d5f918e686ab3cf7b58386f4afb7
size 276615400
oid sha256:9cd6d5ed1646acdff4ba148607dc8a7d631d9db8d27e79bafe2928a87a881b67
size 355043868

File diff suppressed because it is too large Load Diff

10823
package-lock.json generated

File diff suppressed because it is too large Load Diff