diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..66ae417 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,36 @@ +--- +name: Feature request +about: Suggest an idea for this action +title: "" +labels: enhancement +assignees: appleboy +--- + +## Is your feature request related to a problem? + +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +## Describe the solution you'd like + +A clear and concise description of what you want to happen. + +## Example Yaml Config + +If applicable, show how you would expect to use the new feature: + +```yaml +- name: executing remote ssh commands + uses: appleboy/ssh-action@v1 + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + key: ${{ secrets.KEY }} + script: whoami +``` + +## Additional context + +Add any other context about the feature request here. Note that SSH connection +behavior (ciphers, timeouts, proxy, etc.) is implemented in +[drone-ssh](https://github.com/appleboy/drone-ssh) - feature requests for +connection behavior may belong there. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..ecd381f --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,14 @@ +## Description + +Please describe what this PR changes and why. + +## Related Issues + +Fixes # + +## Checklist + +- [ ] Tests pass (`.github/workflows/main.yml` scenarios cover this change) +- [ ] `action.yml` input descriptions updated (if adding/changing parameters) +- [ ] README.md parameter tables updated (if adding/changing parameters) +- [ ] Chinese translations updated (README.zh-cn.md, README.zh-tw.md) diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..1e3d048 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + labels: + - "dependencies" + commit-message: + prefix: "chore(ci)" diff --git a/.github/workflows/trivy-scan.yml b/.github/workflows/trivy-scan.yml index aa959c7..11413d8 100644 --- a/.github/workflows/trivy-scan.yml +++ b/.github/workflows/trivy-scan.yml @@ -33,19 +33,10 @@ jobs: format: 'sarif' output: 'trivy-results.sarif' severity: 'CRITICAL,HIGH,MEDIUM' + exit-code: '1' - name: Upload Trivy results to GitHub Security tab uses: github/codeql-action/upload-sarif@v4 if: always() with: sarif_file: 'trivy-results.sarif' - - - name: Run Trivy vulnerability scanner (table format) - uses: aquasecurity/trivy-action@v0.36.0 - with: - scan-type: 'fs' - scan-ref: '.' - scanners: 'vuln,secret,misconfig' - format: 'table' - severity: 'CRITICAL,HIGH,MEDIUM' - exit-code: '1' diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cbcdb0c --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +# macOS +.DS_Store + +# drone-ssh binaries downloaded by entrypoint.sh during local testing +drone-ssh-* +checksums.txt