-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
967 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
# Contributing | ||
|
||
Please refer to the [contributing](https://github.com/WolfSoftware/contributing) documentation. | ||
Please refer to the | ||
[contributing](https://github.com/WolfSoftware/contributing) | ||
documentation. | ||
|
||
## Important | ||
|
||
ALL commits must be signed to ensure the identity of the developer, any pull requests that are made with unsigned commits will be rejected as a matter of course. | ||
ALL commits must be signed to ensure the identity of the developer, any pull | ||
requests that are made with unsigned commits will be rejected as a matter of | ||
course. | ||
|
||
> This project has a [code of conduct](CODE_OF_CONDUCT.md). By interacting with this repository, organization, or community you agree to abide by its terms. | ||
> This project has a [code of conduct](CODE_OF_CONDUCT.md). By interacting | ||
with this repository, organization, or community you agree to abide by its terms. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Funding | ||
# https://help.github.com/en/github/administering-a-repository/displaying-a-sponsor-button-in-your-repository | ||
|
||
ko_fi: wolfsoftware | ||
github: [WolfSoftware,TGWolf] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,17 @@ | |
|
||
This document outlines security procedures and general policies for this project. | ||
|
||
* [Reporting a Bug](#reporting-a-bug) | ||
* [Disclosure Policy](#disclosure-policy) | ||
* [Comments on this Policy](#comments-on-this-policy) | ||
* [Reporting a Bug](#reporting-a-bug) | ||
* [Disclosure Policy](#disclosure-policy) | ||
* [Comments on this Policy](#comments-on-this-policy) | ||
|
||
## Reporting a Bug | ||
|
||
We take **ALL** security related bugs and issues very seriously. | ||
|
||
If you think you have identified a security related issue, please [report it immediately](mailto:[email protected]) | ||
and include the word "SECURITY" in the subject line. If you are not sure, don’t worry. | ||
If you think you have identified a security related issue, please | ||
[report it immediately](mailto:[email protected]) and include | ||
the word "SECURITY" in the subject line. If you are not sure, don’t worry. | ||
Better safe than sorry – just send an email. | ||
|
||
* Please provide as much information as you can. | ||
|
@@ -25,13 +26,13 @@ the module. | |
|
||
When a security report is received, we will carry out the following steps: | ||
|
||
* Confirm the problem and determine the affected versions. | ||
* Audit code to find any potential similar problems. | ||
* Prepare fixes for all releases still under maintenance. These fixes will be | ||
released as fast as possible. | ||
* Confirm the problem and determine the affected versions. | ||
* Audit code to find any potential similar problems. | ||
* Prepare fixes for all releases still under maintenance. These fixes will be | ||
released as fast as possible. | ||
|
||
We will endeavor to keep you informed of the progress towards a fix | ||
and full announcement, and may ask for additional information or guidance. | ||
We will endeavour to keep you informed of the progress towards a fix and full | ||
announcement, and may ask for additional information or guidance. | ||
|
||
## Comments on this Policy | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: 2 | ||
|
||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "monday" | ||
time: "04:00" | ||
open-pull-requests-limit: 10 | ||
commit-message: | ||
prefix: "chore:" | ||
labels: | ||
- "dependabot: ecosystem : github actions" | ||
- "dependabot: dependencies" | ||
assignees: | ||
- "TGWolf" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script receives a JSON string containing job results and checks for any failures. | ||
|
||
# Check if jq is available | ||
if ! command -v jq &> /dev/null; then | ||
echo "jq could not be found, please install jq to run this script." | ||
exit 1 | ||
fi | ||
|
||
# Read the JSON string from the first script argument | ||
job_results_json=$1 | ||
|
||
# Check if the job results JSON is not empty | ||
if [[ -z "$job_results_json" ]]; then | ||
echo "No job results JSON provided." | ||
exit 1 | ||
fi | ||
|
||
# Set default state | ||
failed_jobs=false | ||
|
||
# Use jq to parse the JSON and check each job's result | ||
while IFS= read -r line; do | ||
job_name=$(echo "$line" | awk '{print $1}') | ||
result=$(echo "$line" | awk '{print $3}') | ||
|
||
if [ "$result" != "success" ]; then | ||
echo "$job_name failed." | ||
failed_jobs=true | ||
else | ||
echo "$job_name succeed." | ||
fi | ||
done <<< "$( echo "$job_results_json" | jq -r 'to_entries[] | "\(.key) result: \(.value.result)"' )" | ||
|
||
if [ "$failed_jobs" = true ] ; then | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: CI/CD Pipeline | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'dependabot/**' | ||
paths-ignore: | ||
- '**/*.md' | ||
- '**/*.cff' | ||
|
||
pull_request: | ||
branches: | ||
- '**' | ||
paths-ignore: | ||
- '**/*.md' | ||
- '**/*.cff' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
shellcheck: | ||
name: ShellCheck | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the Repository | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
|
||
- name: Perform ShellCheck Analysis | ||
run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/shellcheck/master/pipeline.sh) | ||
|
||
cicd-pipeline: | ||
if: always() | ||
name: CI/CD Pipeline | ||
needs: | ||
- shellcheck | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the Repository | ||
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | ||
|
||
- name: Check Job Statuses | ||
run: .github/scripts/check-jobs.sh '${{ toJson(needs) }}' |
Oops, something went wrong.