mirror of
https://github.com/docker/docker-bench-security.git
synced 2024-11-01 08:31:44 +01:00
commit
58e732f3d1
2 changed files with 55 additions and 0 deletions
14
.github/workflows/issues.yml
vendored
Normal file
14
.github/workflows/issues.yml
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
name: issue assignment
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [opened]
|
||||
|
||||
jobs:
|
||||
auto-assign:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 'auto-assign issue'
|
||||
uses: pozil/auto-assign-issue@v1.4.0
|
||||
with:
|
||||
assignees: konstruktoid
|
41
.github/workflows/slsa.yml
vendored
Normal file
41
.github/workflows/slsa.yml
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
---
|
||||
name: slsa
|
||||
on:
|
||||
push:
|
||||
release:
|
||||
types: [published, released]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
- name: checkout repository
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: create checksum file
|
||||
run: find *.sh distros/* functions/* tests/* Dockerfile Vagrantfile -exec sha256sum {} \; > ${{ env.REPOSITORY_NAME }}.sha256
|
||||
|
||||
- name: upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
path: ${{ env.REPOSITORY_NAME }}.sha256
|
||||
|
||||
generate-provenance:
|
||||
needs: build
|
||||
name: generate build provenance
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: download build artifact
|
||||
uses: actions/download-artifact@v3
|
||||
|
||||
- name: generate provenance
|
||||
uses: slsa-framework/github-actions-demo@v0.1
|
||||
with:
|
||||
artifact_path: artifact/
|
||||
|
||||
- name: upload provenance
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
path: build.provenance
|
Loading…
Reference in a new issue