diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..c884a90 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +# http://editorconfig.org + +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true + +[*.{sh,bats,md}] +indent_style = space +indent_size = 4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..de78bff --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI + +on: + pull_request: + push: + branches: + - main + +jobs: + quality-checks: + runs-on: ubuntu-22.04 + steps: + - name: Project Checkout + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + + - name: Check typos on source files + uses: dotanuki-labs/github-actions/quality/typos@main + + - name: Lint Markdown files + uses: dotanuki-labs/github-actions/quality/markdown@main + + - name: Check MIT license on source files + uses: dotanuki-labs/github-actions/foss/check-licenses@main + with: + file-patterns: "*.sh,*.yml" + license: "mit" + + component-tests: + needs: quality-checks + runs-on: ubuntu-22.04 + + steps: + - name: Project Checkout + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + + - name: Run tests + run: ./src/main.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e928d8f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.DS_STORE +.idea diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 0000000..3a359f8 --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,19 @@ +# Copyright 2024 Dotanuki Labs +# SPDX-License-Identifier: MIT + +pull_request_rules: + - name: Automatic merge for Renovate PRs + conditions: + - author~=^renovate\[bot\]$ + - check-success=component-tests + actions: + merge: + method: squash + + - name: Be author's friend + conditions: + - author~=ubiratansoares + - check-success=component-tests + actions: + merge: + method: squash diff --git a/LICENSE b/LICENSE index b7a7154..8da1b71 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,20 @@ -MIT License +The MIT License (MIT) -Copyright (c) 2023 Dotanuki Labs +Copyright (c) 2024 Ubiratan Soares -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md index d811a1f..6af7bf7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,13 @@ -# appsweep-uploader -A pure Bash integration with Guardsquare AppSweep +# appsweep-scan-action + +## What + +> To do + +## Using + +> To do + +## License + +Copyright (c) 2024 - Dotanuki Labs - [The MIT license](https://choosealicense.com/licenses/mit) diff --git a/src/main.sh b/src/main.sh new file mode 100755 index 0000000..b7e75da --- /dev/null +++ b/src/main.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# Copyright 2024 Dotanuki Labs +# SPDX-License-Identifier: MIT + +set -e + +echo "Hello World"