From 76b0d0cd87be39db6c56de4374912444262ba519 Mon Sep 17 00:00:00 2001 From: fl0pp5 Date: Wed, 3 Apr 2024 13:18:44 +0300 Subject: [PATCH] migrate to ALT workflow --- .github/workflows/alt.yml | 42 +++++++++++++++++++++++++++++++++++++++ .github/workflows/go.yml | 4 +--- 2 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/alt.yml diff --git a/.github/workflows/alt.yml b/.github/workflows/alt.yml new file mode 100644 index 0000000..d51b0f2 --- /dev/null +++ b/.github/workflows/alt.yml @@ -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" \ No newline at end of file diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 83e90ef..ef059d1 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 -