migrate to ALT workflow
Some checks failed
Go / Test (push) Failing after 19s
Update vuln-list-alt repo / Update vuln-list-alt (push) Failing after 5m55s

This commit is contained in:
fl0pp5 2024-04-03 13:18:44 +03:00
parent 0e3663e910
commit 76b0d0cd87
2 changed files with 43 additions and 3 deletions

42
.github/workflows/alt.yml vendored Normal file
View File

@ -0,0 +1,42 @@
name: Update vuln-list-alt repo
on:
push:
schedule:
- cron: "0 */6 * * *"
workflow_dispatch:
jobs:
update:
name: Update vuln-list-alt
runs-on: alt-sisyphus
env:
GITHUB_TOKEN: ${{ secrets.ORG_REPO_TOKEN }}
VULN_LIST_DIR: "vuln-list-alt"
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up go
run: |
apt-get update
apt-get install -y golang
- name: Check out vuln-list-alt repo
uses: actions/checkout@v4
with:
repository: ${{ github.repository_owner }}/${{ env.VULN_LIST_DIR }}
token: ${{ secrets.ORG_REPO_TOKEN }}
path: ${{ env.VULN_LIST_DIR }}
ref: main
- name: Setup user email and name
run: |
git config --global user.email "pepelyaevip@basealt.ru"
git config --global user.name "pepelyaevip"
- name: Compile vuln-list-update
run: go build -o vuln-list-update .
- if: always()
name: ALT Vulnerability
run: ./scripts/update.sh alt "ALT Vulnerability"

View File

@ -3,9 +3,8 @@ on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-latest
runs-on: alt-sisyphus
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
@ -23,4 +22,3 @@ jobs:
- name: Test
run: |
make test