2023-02-05 06:04:02 +01:00
|
|
|
name: Dockle
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-03-20 13:15:37 +01:00
|
|
|
- beta
|
|
|
|
- io
|
|
|
|
- host
|
2023-02-05 06:04:02 +01:00
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
dockle:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-11-08 18:43:24 +01:00
|
|
|
- name: Checkout code
|
2023-11-09 09:43:42 +01:00
|
|
|
uses: actions/checkout@v4
|
2023-11-08 18:43:24 +01:00
|
|
|
- name: Build an image from Dockerfile
|
2023-11-09 09:43:42 +01:00
|
|
|
uses: docker/build-push-action@v5
|
2023-11-08 18:43:24 +01:00
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
push: false
|
|
|
|
provenance: false
|
|
|
|
cache-from: type=registry,ref=ghcr.io/misskeyio/misskey:io-buildcache
|
|
|
|
tags: |
|
|
|
|
misskey:scan
|
|
|
|
- name: Run dockle
|
|
|
|
uses: goodwithtech/dockle-action@main
|
|
|
|
with:
|
|
|
|
image: 'misskey:scan'
|
|
|
|
format: 'list'
|
|
|
|
exit-code: '1'
|
|
|
|
exit-level: 'warn'
|
|
|
|
ignore: 'CIS-DI-0005,CIS-DI-0010'
|