-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (49 loc) · 1.29 KB
/
security.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
name: security
on:
push:
branches: [development/*, stabilization/*, hotfix/*]
release:
types: [published]
pull_request:
branches: [development/*, stabilization/*, hotfix/*]
schedule:
- cron: "0 8 * * 1" # Monday - 8am - UTC
workflow_dispatch:
jobs:
build-ui:
runs-on: ubuntu-20.04
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/[email protected]
- uses: actions/[email protected]
with:
node-version: "20"
cache: "npm"
- name: install dependencies
run: npm ci
- name: build assets
run: npm run rsbuild
- name: Login to GitHub Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push zenko ui
uses: docker/[email protected]
with:
push: true
context: .
tags: |
ghcr.io/${{ github.repository }}:${{ github.sha }}
trivy-zenko-ui:
needs: build-ui
name: Trivy Vulnerability Scan for Code for Zenko-ui
uses: scality/workflows/.github/workflows/trivy.yaml@v1
with:
name: zenko-ui
namespace: scality