ci: port workflows from .github/ to .forgejo/ (Forgejo Actions)
GitHub torrentclaw org is shadow-banned; CI is hosted at git.torrentclaw.com now. Move workflows into the runner's natively-watched .forgejo/workflows/ tree and adapt steps to run in the available 'docker'-labeled Forgejo runner without GitHub-only tooling (gh CLI, third-party marketplace actions). - Use container: image to ship the toolchain (no actions/setup-* needed). - Drop GitHub-only marketplace actions in favour of upstream installers invoked over curl/apt. - Where a workflow created a GitHub Release (release.yml), substitute the step with a curl call against the Forgejo Releases API (POST /repos/<owner>/<repo>/releases).
This commit is contained in:
parent
42cf17d5a8
commit
d0a935a8bc
1 changed files with 18 additions and 3 deletions
|
|
@ -12,9 +12,14 @@ permissions:
|
||||||
jobs:
|
jobs:
|
||||||
lint-commits:
|
lint-commits:
|
||||||
name: Lint commits
|
name: Lint commits
|
||||||
runs-on: ubuntu-latest
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: docker.io/library/ubuntu:24.04
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install git + grep
|
||||||
|
run: apt-get update && apt-get install -y --no-install-recommends git ca-certificates
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
@ -45,8 +50,13 @@ jobs:
|
||||||
|
|
||||||
lint-scripts:
|
lint-scripts:
|
||||||
name: Lint shell scripts
|
name: Lint shell scripts
|
||||||
runs-on: ubuntu-latest
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: docker.io/library/ubuntu:24.04
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install shellcheck
|
||||||
|
run: apt-get update && apt-get install -y --no-install-recommends shellcheck git ca-certificates
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Run ShellCheck
|
- name: Run ShellCheck
|
||||||
|
|
@ -54,8 +64,13 @@ jobs:
|
||||||
|
|
||||||
security-check:
|
security-check:
|
||||||
name: Security patterns check
|
name: Security patterns check
|
||||||
runs-on: ubuntu-latest
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: docker.io/library/ubuntu:24.04
|
||||||
steps:
|
steps:
|
||||||
|
- name: Install grep + git
|
||||||
|
run: apt-get update && apt-get install -y --no-install-recommends git grep ca-certificates
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Check for unsafe string interpolation in curl payloads
|
- name: Check for unsafe string interpolation in curl payloads
|
||||||
Loading…
Add table
Add a link
Reference in a new issue