Skip to content

Commit

Permalink
feat(gh): add default GitHub repo files (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzickap authored Feb 14, 2024
1 parent 1adcd7b commit d51664b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .checkov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
skip-check:
# The build output cannot be affected by user parameters other than the build entry point and the top-level source location. GitHub Actions workflow_dispatch inputs MUST be empty
- CKV_GHA_7
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Bug report
about: Create a report to help us improve
title: 'Bug: This is a sample issue title'
title: "Bug: This is a sample issue title"
labels: bug
assignees: ruzickap

---

**Describe the bug**
Expand Down
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/proposal.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
name: Proposal
about: Suggest an idea for this project
title: 'Proposal: This is a sample title'
title: "Proposal: This is a sample title"
labels: proposal
assignees: ruzickap

---

**Is your feature request related to a problem? Please describe**
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ permissions: read-all
jobs:
mega-linter:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout Code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand All @@ -27,16 +28,17 @@ jobs:
run: |
set -euxo pipefail
echo '#!/usr/bin/env bash' > README.sh
find . -name '*.md' -print0 | while IFS= read -r -d '' FILE ; do
find . -name '*.md' -print0 | while IFS= read -r -d '' FILE; do
# Extract: ```bash ... ```
sed -n "/^\`\`\`\(bash\|shell\)$/,/^\`\`\`$/p" "${FILE}" | sed '/^```*/d' >> README.sh
# Extract: ```bash ... ```
sed -n "/^ \`\`\`\(bash\|shell\)$/,/^ \`\`\`$/p" "${FILE}" | sed '/^ ```*/d; s/^ //' >> README.sh
done
ls -la README.sh
chmod a+x README.sh
- name: 💡 MegaLinter
uses: oxsecurity/megalinter@688bc7466d7ab4faa83d614c2e6f9acf42b674dc # v7.8.0
uses: oxsecurity/megalinter@190cd0dad6dc52b2de5b810e3b290c3d6bdcc0f2 # v7.9.0
env:
GITHUB_COMMENT_REPORTER: false
GITHUB_STATUS_REPORTER: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: stale

on:
schedule:
- cron: "30 1 * * *"
- cron: "9 9 * * *"

permissions:
issues: write
Expand Down
6 changes: 2 additions & 4 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Configuration file for MegaLinter
# See all available variables at https://megalinter.io/latest/configuration/ and in linters documentation

BASH_SHFMT_ARGUMENTS: --indent 2 --space-redirects
BASH_SHFMT_ARGUMENTS: --case-indent --indent 2 --space-redirects

DISABLE_LINTERS:
- MARKDOWN_MARKDOWN_LINK_CHECK # Using lychee instead
Expand All @@ -26,9 +26,7 @@ PRINT_ALPACA: false
# Disable creating report directory
REPORT_OUTPUT_FOLDER: none

# Issue: https://github.com/bridgecrewio/checkov/issues/3839
# The build output cannot be affected by user parameters other than the build entry point and the top-level source location. GitHub Actions workflow_dispatch inputs MUST be empty
REPOSITORY_CHECKOV_ARGUMENTS: --skip-check CKV_GHA_7
REPOSITORY_CHECKOV_ARGUMENTS: --quiet

# Do not leave debug code in production, Insecure URL
REPOSITORY_DEVSKIM_ARGUMENTS: --ignore-globs CHANGELOG.md --ignore-rule-ids DS162092,DS137138
Expand Down

0 comments on commit d51664b

Please sign in to comment.