42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
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" |