add files for new action
This commit is contained in:
5
.gitea/workflows/Dockerfile
Normal file
5
.gitea/workflows/Dockerfile
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
FROM harbor.avroid.tech/devops/addlicense:1.1.1
|
||||||
|
|
||||||
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
8
.gitea/workflows/action.yml
Normal file
8
.gitea/workflows/action.yml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
name: 'Addlicense action'
|
||||||
|
description: 'Checks license and notify about missing license headers'
|
||||||
|
inputs:
|
||||||
|
outputs:
|
||||||
|
runs:
|
||||||
|
using: 'docker'
|
||||||
|
image: 'Dockerfile'
|
||||||
|
args: []
|
||||||
22
.gitea/workflows/check-license.yml
Normal file
22
.gitea/workflows/check-license.yml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
name: Check license
|
||||||
|
run-name: ${{ gitea.actor }} is start check sources
|
||||||
|
on: [push]
|
||||||
|
# on: [pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
scan-secrets:
|
||||||
|
name: Check license
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: harbor.avroid.tech/docker-hub-proxy/node:20-alpine3.19
|
||||||
|
steps:
|
||||||
|
- run: echo "Start job on ${{ runner.name }} with os ${{ runner.os }}"
|
||||||
|
- run: echo "Work with branch ${{ gitea.ref }} repository ${{ gitea.repository }}"
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Mirrors/github-actions-checkout.git@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # for work tj-actions/changed-files
|
||||||
|
persist-credentials: false # for work tj-actions/changed-files
|
||||||
|
- name: Scan for secrets
|
||||||
|
uses: https://gitea:${{ secrets.CI_TOKEN }}@git.avroid.tech/Actions/gitleaks-docker-action.git@v1
|
||||||
5
.gitea/workflows/entrypoint.sh
Normal file
5
.gitea/workflows/entrypoint.sh
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "Processing event '$GITHUB_EVENT_NAME'"
|
||||||
|
|
||||||
|
addlicense -check .
|
||||||
Reference in New Issue
Block a user