-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Ahmad Nassri
committed
Dec 16, 2022
1 parent
7dbc446
commit 6a3b568
Showing
15 changed files
with
339 additions
and
199 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# ----------------------------------------------- # | ||
# Note: this file originates in template-template # | ||
# ----------------------------------------------- # | ||
|
||
github: [ahmadnassri] |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# ----------------------------------------------- # | ||
# Note: this file originates in template-template # | ||
# ----------------------------------------------- # | ||
|
||
quiet: true | ||
skip-check: | ||
- CKV_DOCKER_2 | ||
- CKV_GHA_3 | ||
- BC_DKR_3 | ||
- CKV_GIT_1 | ||
- CKV_GIT_5 | ||
- CKV_GIT_6 |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# ----------------------------------------------- # | ||
# Note: this file originates in template-template # | ||
# ----------------------------------------------- # | ||
|
||
ENABLE: | ||
- ACTION | ||
- BASH | ||
- MAKEFILE | ||
- REPOSITORY | ||
- TERRAFORM | ||
- HTML | ||
- ENV | ||
- JAVASCRIPT | ||
- JSX | ||
- EDITORCONFIG | ||
- JSON | ||
- DOCKERFILE | ||
- MARKDOWN | ||
- YAML | ||
- CSS | ||
- OPENAPI | ||
- SQL | ||
|
||
DISABLE_LINTERS: | ||
- JSON_PRETTIER | ||
- JAVASCRIPT_PRETTIER | ||
- YAML_PRETTIER | ||
- REPOSITORY_TRIVY | ||
- REPOSITORY_DEVSKIM | ||
- TERRAFORM_CHECKOV | ||
|
||
CONFIG_REPORTER: false | ||
FAIL_IF_MISSING_LINTER_IN_FLAVOR: true | ||
FLAVOR_SUGGESTIONS: false | ||
LOG_LEVEL: INFO | ||
MARKDOWN_MARKDOWNLINT_CONFIG_FILE: .markdown-lint.yml | ||
PRINT_ALPACA: false | ||
SHOW_ELAPSED_TIME: true | ||
VALIDATE_ALL_CODEBASE: false | ||
IGNORE_GENERATED_FILES: true | ||
FILTER_REGEX_EXCLUDE: (dist/*|README.md|test/fixtures/*|vendor/*|/schemas/*) | ||
REPOSITORY_CHECKOV_ARGUMENTS: [--skip-path, schemas] |
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,17 @@ | ||
# ----------------------------------------------- # | ||
# Note: this file originates in template-template # | ||
# ----------------------------------------------- # | ||
|
||
extends: default | ||
|
||
rules: | ||
brackets: | ||
max-spaces-inside: 1 | ||
document-start: | ||
present: false | ||
truthy: | ||
check-keys: false | ||
line-length: | ||
max: 500 | ||
comments: | ||
min-spaces-from-content: 1 |
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,6 +1,6 @@ | ||
# ------------------------------------------------------------- # | ||
# Note: this file is automatically managed in template-template # | ||
# ------------------------------------------------------------- # | ||
# ----------------------------------------------- # | ||
# Note: this file originates in template-template # | ||
# ----------------------------------------------- # | ||
|
||
on: pull_request_target | ||
|
||
|
@@ -10,17 +10,20 @@ permissions: | |
pull-requests: write | ||
contents: write | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }} | ||
|
||
jobs: | ||
metadata: | ||
runs-on: ubuntu-latest | ||
|
||
outputs: | ||
repository: ${{ steps.metadata.outputs.repository }} | ||
repository_is_template: ${{ steps.metadata.outputs.repository_is_template }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2.3.5 | ||
- uses: actions/checkout@v3.0.2 | ||
|
||
- uses: ahmadnassri/action-metadata@v1 | ||
- uses: ahmadnassri/action-metadata@v2.1.2 | ||
id: metadata | ||
|
||
auto-merge: | ||
|
@@ -31,22 +34,18 @@ jobs: | |
# only run for dependabot PRs | ||
if: ${{ github.actor == 'dependabot[bot]' }} | ||
|
||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
|
||
steps: | ||
- id: dependabot | ||
uses: dependabot/fetch-metadata@v1.1.1 | ||
uses: dependabot/fetch-metadata@v1.3.5 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
github-token: ${{ github.token }} | ||
|
||
- name: auto merge conditions | ||
id: auto-merge | ||
if: | | ||
( | ||
steps.dependabot.outputs.update-type == 'version-update:semver-patch' && | ||
contains('direct:production,indirect:production', steps.dependabot.outputs.dependency-type) | ||
contains('direct:development,indirect:development,direct:production,indirect:production', steps.dependabot.outputs.dependency-type) | ||
) || ( | ||
steps.dependabot.outputs.update-type == 'version-update:semver-minor' && | ||
contains('direct:development,indirect:development', steps.dependabot.outputs.dependency-type) | ||
|
@@ -55,6 +54,9 @@ jobs: | |
|
||
- name: auto approve pr | ||
if: ${{ steps.auto-merge.conclusion == 'success' }} | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
run: | | ||
gh pr review --approve "$PR_URL" | ||
gh pr merge --auto --rebase "$PR_URL" | ||
|
@@ -67,13 +69,13 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
# only run for templates | ||
if: ${{ fromJSON(needs.metadata.outputs.repository).is_template }} | ||
if: ${{ needs.metadata.outputs.repository_is_template == 'true' }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2.3.5 | ||
- uses: actions/checkout@v3.0.2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
- uses: ahmadnassri/[email protected] | ||
- uses: ahmadnassri/action-template-repository-sync@v1.6.0 | ||
|
||
- uses: ahmadnassri/action-template-repository-sync@v2 | ||
with: | ||
github-token: ${{ secrets.GH_TOKEN }} |
Oops, something went wrong.