
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
@backstage/plugin-scaffolder-backend-module-gitea
Advanced tools
The gitea module for @backstage/plugin-scaffolder-backend
Welcome to the publish:gitea action of the scaffolder-gitea-backend.
To use this action, you will have to add the package using the following command to be executed at the root of your backstage project:
yarn --cwd packages/backend add @backstage/plugin-scaffolder-backend-module-gitea
Alternatively, if you use the new backend system, then register it like this:
// packages/backend/src/index.ts
backend.add(import('@backstage/plugin-scaffolder-backend-module-gitea'));
Configure the action (if not yet done): (you can check the docs to see all options):
Before to create a template, include to your app-config.yaml file the
gitea host and credentials under the integrations: section
integrations:
gitea:
- host: gitea.com
username: '<GITEA_USER>'
password: '<GITEA_PASSWORD>'
- host: localhost:3333
username: '<GITEA_LOCALHOST_USER>'
password: '<GITEA_LOCALHOST_PASSWORD>'
Important: As backstage will issue HTTPS/TLS requests to the gitea instance, it is needed to configure gitea with a valid certificate or at least with a
self-signed certificate gitea cert --host localhost -ca trusted by a CA authority. Don't forget to set the env var NODE_EXTRA_CA_CERTS to point to the CA file before launching backstage or you can set temporarily NODE_TLS_REJECT_UNAUTHORIZED=0 but this is not recommended for production!
When done, you can create a template which:
RepoUrlPicker within the spec/parameters section to select the gitea host and to provide the name of the repositoryenum list allowing the user to define the visibility about the repository to be created: public or private. If this field is omitted, public is then used by the action.publish:giteaWarning: The list of the allowedOwners of the repoUrlPicker must match the list of the organizations which are available on the gitea host !
kind: Template
metadata:
name: simple-gitea-project
title: Create a gitea repository
description: Create a gitea repository
spec:
owner: guests
type: service
parameters:
- title: Choose a location
required:
- repoUrl
properties:
repoUrl:
title: Repository Location
type: string
ui:field: RepoUrlPicker
ui:options:
allowedOwners:
- qteam
- qshift
allowedHosts:
- gitea.localtest.me:3333
repoVisibility:
title: Visibility of the repository
type: string
default: 'public'
enum:
- 'public'
- 'private'
enumNames:
- 'public'
- 'private'
steps:
...
- id: publish
name: Publishing to a gitea git repository
action: publish:gitea
input:
description: This is ${{ parameters.repoUrl | parseRepoUrl | pick('repo') }}
repoVisibility: ${{ parameters.repoVisibility }}
repoUrl: ${{ parameters.repoUrl }}
defaultBranch: main
Access the newly gitea repository created using the repoContentsUrl ;-)
FAQs
The gitea module for @backstage/plugin-scaffolder-backend
The npm package @backstage/plugin-scaffolder-backend-module-gitea receives a total of 45,984 weekly downloads. As such, @backstage/plugin-scaffolder-backend-module-gitea popularity was classified as popular.
We found that @backstage/plugin-scaffolder-backend-module-gitea demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.