migrate to ALT workflow
This commit is contained in:
parent
0e3663e910
commit
76b0d0cd87
42
.github/workflows/alt.yml
vendored
Normal file
42
.github/workflows/alt.yml
vendored
Normal 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"
|
4
.github/workflows/go.yml
vendored
4
.github/workflows/go.yml
vendored
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user