0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 15:23:14 -05:00

Merge pull request 'ci: use custom action for Go caching' (#5328) from fnetx/custom-go-caching into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/5328
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
This commit is contained in:
Otto 2024-09-29 23:53:33 +00:00
commit c37732d1ae
2 changed files with 5 additions and 5 deletions

View file

@ -1,11 +1,11 @@
runs:
using: "composite"
steps:
- uses: https://code.forgejo.org/actions/setup-go@v4
with:
go-version-file: "go.mod"
- name: setup user and permissions
run: |
git config --add safe.directory '*'
adduser --quiet --comment forgejo --disabled-password forgejo
chown -R forgejo:forgejo .
- uses: https://codeberg.org/fnetx/setup-cache-go@b2214eaf6fb44c7e8512c0f462a2c3ec31f86a73
with:
username: forgejo

View file

@ -214,5 +214,5 @@ jobs:
steps:
- uses: https://code.forgejo.org/actions/checkout@v3
- uses: ./.forgejo/workflows/composite/setup-env
- run: make deps-backend deps-tools
- run: make security-check
- run: su forgejo -c 'make deps-backend deps-tools'
- run: su forgejo -c 'make security-check'