Skip to content

Commit 15894da

Browse files
committed
feat: Initialize extra repo for data
0 parents  commit 15894da

46 files changed

Lines changed: 8925 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: https://owasp.org/donate/?reponame=www-project-devsecops-maturity-model&title=OWASP+Devsecops+Maturity+Model

.github/workflows/main.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
workflow_dispatch:
7+
schedule:
8+
- cron: "0 7 * * *"
9+
10+
permissions:
11+
contents: write
12+
issues: read
13+
#pull-requests: write # to be able to comment on released pull requests
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
with:
21+
persist-credentials: false # This is important if you have branch protection rules!
22+
- name: Semantic Release
23+
uses: cycjimmy/semantic-release-action@v4
24+
with:
25+
branch: 'master'
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
- name: Get Semantic Release Version
29+
id: get-version
30+
run: echo "::set-output name=version::$(grep -oP '\[\d+\.\d+\.\d+\]' CHANGELOG.md | tr -d '[]')"
31+
32+
- name: show version
33+
run: |
34+
echo "Semantic Release Version: ${{ steps.get-version.outputs.version }}"
35+
36+
- name: setup qemu for multi-arch build
37+
uses: docker/setup-qemu-action@v2
38+
with:
39+
platforms: amd64,arm64
40+
- name: setup buildx
41+
uses: docker/setup-buildx-action@v2
42+
- name: Log in to Docker Hub
43+
uses: docker/login-action@v2
44+
with:
45+
#registry: registry.hub.docker.com
46+
username: wurstbrot
47+
password: ${{ secrets.HUB_TOKEN }}
48+
- name: create and push yaml image
49+
uses: docker/build-push-action@v3
50+
with:
51+
push: true
52+
file: Dockerfile
53+
platforms: linux/amd64,linux/arm64
54+
tags: wurstbrot/dsomm-yaml-generation:${{ steps.get-version.outputs.version }},wurstbrot/dsomm-yaml-generation:latest
55+
- name: Extract generated.yaml
56+
run: |
57+
docker cp wurstbrot/dsomm-yaml-generation:${{ steps.get-version.outputs.version }}:/var/www/html/src/assets/YAML/generated/generated.yaml src/assets/YAML/generated/generated.yaml
58+
# Commit all changed files back to the repository
59+
- uses: planetscale/ghcommit-action@v0.1.6
60+
with:
61+
commit_message: "🤖 fmt"
62+
repo: ${{ github.repository }}
63+
branch: ${{ github.head_ref || github.ref_name }}
64+
env:
65+
GITHUB_TOKEN: ${{secrets.ACCESS_TOKEN}}

.gitignore

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# angular cache
4+
/.angular/cache
5+
6+
# compiled output
7+
/dist
8+
/tmp
9+
/out-tsc
10+
11+
# dependencies
12+
/node_modules
13+
14+
# IDEs and editors
15+
/.idea
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
22+
23+
# IDE - VSCode
24+
.vscode/*
25+
!.vscode/settings.json
26+
27+
# Cache
28+
!.vscode/tasks.json
29+
!.vscode/launch.json
30+
!.vscode/extensions.json
31+
32+
# misc
33+
/.sass-cache
34+
/connect.lock
35+
/coverage
36+
/libpeerconnection.log
37+
npm-debug.log
38+
yarn-error.log
39+
testem.log
40+
/typings
41+
42+
# System Files
43+
.DS_Store
44+
Thumbs.db
45+
/yaml-generation/vendor/
46+
# Generated YAML
47+
/src/assets/YAML/generated/generated.yaml

.releaserc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"branch": "master",
3+
"plugins": [
4+
[
5+
"@semantic-release/commit-analyzer",
6+
{
7+
"preset": "angular",
8+
"releaseRules": [
9+
{"breaking": true, "release": "minor"},
10+
{"tag": "Breaking", "release": "minor"}
11+
]
12+
}
13+
],
14+
"@semantic-release/release-notes-generator",
15+
"@semantic-release/changelog",
16+
"@semantic-release/github"
17+
]
18+
}

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM php:apache-buster
2+
RUN apt-get update && apt-get -y install apt-utils libyaml-dev wget unzip && wget -O composer-setup.php https://getcomposer.org/installer && php composer-setup.php --install-dir=/usr/local/bin --filename=composer
3+
COPY yaml-generation /var/www/html/yaml-generation
4+
COPY src /var/www/html/src
5+
RUN cd /var/www/html/yaml-generation && composer install \
6+
--ignore-platform-reqs \
7+
--no-interaction \
8+
--no-plugins \
9+
--no-scripts \
10+
--prefer-dist
11+
12+
13+
RUN pecl channel-update pecl.php.net && pecl install yaml && docker-php-ext-enable yaml
14+
RUN cd /var/www/html && php yaml-generation/generateDimensions.php
15+
workdir /var/www/html
16+
CMD php yaml-generation/generateDimensions.php

0 commit comments

Comments
 (0)