forked from MISP/misp-modules
-
Notifications
You must be signed in to change notification settings - Fork 1
26 lines (22 loc) · 763 Bytes
/
workflow.yml
File metadata and controls
26 lines (22 loc) · 763 Bytes
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
# https://github.com/marketplace/actions/docker-lint
name: Workflow
on: [push]
jobs:
build-secure-and-push:
runs-on: ubuntu-latest
env:
GITHUB_PASS: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USER: ${{ github.actor }}
REPO: ${{ github.repository }}
NAME: misp-modules
REGISTRY: docker.pkg.github.com
CONTAINER: ${{ REGISTRY }}/${{ REPO }}:${{ github.sha }}
steps:
- name: Checkout
uses: actions/checkout@v2
- run: docker build . -t ${{ REGISTRY }}/${{ REPO }}:${{ github.sha }}
# Vulnerability scan
## https://github.com/marketplace/actions/container-image-scan
- uses: Azure/container-scan@v0
with:
image-name: ${{ REGISTRY }}/${{ REPO }}:${{ github.sha }}