Skip to content

Commit db2b98e

Browse files
committed
Additional workflows
- Labels - Docker hub description - Greetings - Misspells - Security analysis
1 parent 9d2e8e1 commit db2b98e

File tree

6 files changed

+174
-0
lines changed

6 files changed

+174
-0
lines changed

.github/labels.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
- name: ":robot: bot"
2+
color: "69cde9"
3+
description: ""
4+
- name: ":bug: bug"
5+
color: "b60205"
6+
description: ""
7+
- name: ":game_die: dependencies"
8+
color: "0366d6"
9+
description: ""
10+
- name: ":memo: documentation"
11+
color: "c5def5"
12+
description: ""
13+
- name: ":busts_in_silhouette: duplicate"
14+
color: "cccccc"
15+
description: ""
16+
- name: ":sparkles: enhancement"
17+
color: "0054ca"
18+
description: ""
19+
- name: ":bulb: feature request"
20+
color: "0e8a16"
21+
description: ""
22+
- name: ":mega: feedback"
23+
color: "03a9f4"
24+
description: ""
25+
- name: ":rocket: future maybe"
26+
color: "fef2c0"
27+
description: ""
28+
- name: ":hatching_chick: good first issue"
29+
color: "7057ff"
30+
description: ""
31+
- name: ":pray: help wanted"
32+
color: "4caf50"
33+
description: ""
34+
- name: ":hand: hold"
35+
color: "24292f"
36+
description: ""
37+
- name: ":no_entry_sign: invalid"
38+
color: "e6e6e6"
39+
description: ""
40+
- name: ":interrobang: maybe bug"
41+
color: "ff5722"
42+
description: ""
43+
- name: ":thinking: needs more info"
44+
color: "795548"
45+
description: ""
46+
- name: ":question: question"
47+
color: "3f51b5"
48+
description: ""
49+
- name: ":coffin: wontfix"
50+
color: "ffffff"
51+
description: ""
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Docker Hub description
2+
on:
3+
push:
4+
branches: [master]
5+
paths:
6+
- README.md
7+
- .github/workflows/dockerhub-description.yml
8+
jobs:
9+
dockerHubDescription:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Docker Hub Description
15+
uses: peter-evans/[email protected]
16+
env:
17+
DOCKERHUB_USERNAME: qmcgaw
18+
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
19+
DOCKERHUB_REPOSITORY: qmcgaw/ddns-updater

.github/workflows/greetings.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Greetings
2+
on: [pull_request, issues]
3+
jobs:
4+
greeting:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/first-interaction@v1
8+
with:
9+
repo-token: ${{ secrets.GITHUB_TOKEN }}
10+
issue-message: 'Thanks for creating your first issue :+1: Feel free to use [Slack](https://join.slack.com/t/qdm12/shared_invite/enQtODMwMDQyMTAxMjY1LTU1YjE1MTVhNTBmNTViNzJiZmQwZWRmMDhhZjEyNjVhZGM4YmIxOTMxOTYzN2U0N2U2YjQ2MDk3YmYxN2NiNTc) if you just need some quick help or want to chat'
11+
pr-message: 'Thank you so much for contributing, that means a lot to me :wink:'

.github/workflows/labels.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: labels
2+
on:
3+
push:
4+
branches: ["master"]
5+
paths:
6+
- '.github/labels.yml'
7+
- '.github/workflows/labels.yml'
8+
jobs:
9+
labeler:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Labeler
15+
if: success()
16+
uses: crazy-max/ghaction-github-labeler@v1
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/misspell.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Misspells
2+
on:
3+
pull_request:
4+
branches: [master]
5+
push:
6+
branches: [master]
7+
jobs:
8+
misspell:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: reviewdog/action-misspell@master
13+
with:
14+
github_token: ${{ secrets.GITHUB_TOKEN }}
15+
locale: "US"
16+
level: error

.github/workflows/security.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Security scan of Docker image
2+
on:
3+
push:
4+
branches: [master]
5+
paths-ignore:
6+
- .github/workflows/buildx-release.yml
7+
- .github/workflows/dockerhub-description.yml
8+
- .github/workflows/greetings.yml
9+
- .github/workflows/labels.yml
10+
- .github/workflows/misspell.yml
11+
- .github/workflows/security.yml
12+
- .dockerignore
13+
- .gitignore
14+
- docker-compose.yml
15+
- LICENSE
16+
- README.md
17+
- title.svg
18+
pull_request:
19+
branches: [master]
20+
paths-ignore:
21+
- .github/workflows/buildx-release.yml
22+
- .github/workflows/dockerhub-description.yml
23+
- .github/workflows/greetings.yml
24+
- .github/workflows/labels.yml
25+
- .github/workflows/misspell.yml
26+
- .github/workflows/security.yml
27+
- .dockerignore
28+
- .gitignore
29+
- docker-compose.yml
30+
- LICENSE
31+
- README.md
32+
- title.svg
33+
schedule:
34+
- cron: '0 9 * * *'
35+
jobs:
36+
security-analysis:
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Checkout
40+
uses: actions/checkout@v2
41+
- name: Check for scratch
42+
id: scratchCheck
43+
run: echo ::set-output name=scratch::$(cat Dockerfile | grep 'FROM scratch')
44+
- name: Build image
45+
if: steps.scratchCheck.outputs.scratch == ''
46+
run: docker build -t image .
47+
- name: Phonito
48+
if: steps.scratchCheck.outputs.scratch == ''
49+
uses: phonito/phonito-scanner-action@master
50+
with:
51+
image: image
52+
fail-level: LOW
53+
phonito-token: ${{ secrets.PHONITO_TOKEN }}
54+
- name: Trivy
55+
if: steps.scratchCheck.outputs.scratch == ''
56+
uses: homoluctus/[email protected]
57+
with:
58+
token: ${{ secrets.GITHUB_TOKEN }}
59+
image: image

0 commit comments

Comments
 (0)