Skip to content

Commit

Permalink
Fix security workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
JBWatenbergScality committed Sep 11, 2023
1 parent c437d75 commit 7eb1e2d
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ on:
pull_request:
branches: [development/*, stabilization/*, hotfix/*]
schedule:
- cron: '0 8 * * 1' # Monday - 8am - UTC
- cron: "0 8 * * 1" # Monday - 8am - UTC
workflow_dispatch:


jobs:
build-ui:
runs-on: ubuntu-20.04
Expand All @@ -24,21 +23,21 @@ jobs:
uses: actions/checkout@v2.3.5
- uses: actions/setup-node@v2.4.1
with:
node-version: '16'
cache: 'npm'
node-version: "16"
cache: "npm"
- name: install dependencies
run: npm config set unsafe-perm true && npm ci
- name: build assets
run: npm run build

build-zenko-ui:
needs: [build-ui]
permissions:
contents: read
packages: write
uses: scality/workflows/.github/workflows/docker-build.yaml@v1
with:
name: zenko-ui
- name: Build and push zenko ui
uses: docker/build-push-action@v2.7.0
with:
push: true
context: .
tags: |
ghcr.io/${{ github.repository }}/zenko-ui:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max

trivy-zenko-ui:
needs: build-zenko-ui
Expand Down

0 comments on commit 7eb1e2d

Please sign in to comment.