Skip to content

Commit

Permalink
Some actions
Browse files Browse the repository at this point in the history
  • Loading branch information
PartTimeLegend committed Mar 26, 2024
1 parent 08ee230 commit 4683267
Show file tree
Hide file tree
Showing 8 changed files with 141 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
github:

Check failure on line 1 in .github/labeler.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

prettier

Incorrect formatting, autoformat by running 'trunk fmt'
- changed-files:
- any-glob-to-any-file: .github/*
docker:
- changed-files:
- any-glob-to-any-file: Dockerfile
license:
- changed-files:
- any-glob-to-any-file: LICENSE
docs:
- changed-files:
- any-glob-to-any-file: ['docs/*', '**/*.md']

Check failure on line 12 in .github/labeler.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

yamllint(quoted-strings)

[new] string value is redundantly quoted with any quotes
python:
- changed-files:
- any-glob-to-any-file: ['requirements.txt', '**/*.md']

Check failure on line 15 in .github/labeler.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

yamllint(quoted-strings)

[new] string value is redundantly quoted with any quotes
deploy:
- changed-files:
- any-glob-to-any-file: ['deploy/*']

Check failure on line 18 in .github/labeler.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

yamllint(quoted-strings)

[new] string value is redundantly quoted with any quotes
terraform:
- changed-files:
- any-glob-to-any-file: ['deploy/terraform/*']

Check failure on line 21 in .github/labeler.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

yamllint(quoted-strings)

[new] string value is redundantly quoted with any quotes
19 changes: 19 additions & 0 deletions .github/workflows/autoupdate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: autoupdate

Check failure on line 1 in .github/workflows/autoupdate.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

checkov(CKV2_GHA_1)

[new] Ensure top-level permissions are not set to write-all
on:
push: {}
jobs:
autoupdate:
name: autoupdate
runs-on: ubuntu-latest
steps:
- uses: docker://chinthakagodawita/autoupdate-action:latest
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
DRY_RUN: "false"
PR_FILTER: "labelled"

Check failure on line 13 in .github/workflows/autoupdate.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

yamllint(quoted-strings)

[new] string value is redundantly quoted with any quotes
PR_LABELS: "autoupdate"

Check failure on line 14 in .github/workflows/autoupdate.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

yamllint(quoted-strings)

[new] string value is redundantly quoted with any quotes
EXCLUDED_LABELS: "wontfix"

Check failure on line 15 in .github/workflows/autoupdate.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

yamllint(quoted-strings)

[new] string value is redundantly quoted with any quotes
MERGE_MSG: "Branch was auto-updated."

Check failure on line 16 in .github/workflows/autoupdate.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

yamllint(quoted-strings)

[new] string value is redundantly quoted with any quotes
RETRY_COUNT: "5"
RETRY_SLEEP: "300"
MERGE_CONFLICT_ACTION: "fail"

Check failure on line 19 in .github/workflows/autoupdate.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

yamllint(quoted-strings)

[new] string value is redundantly quoted with any quotes
18 changes: 18 additions & 0 deletions .github/workflows/gitleaks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: gitleaks

Check failure on line 1 in .github/workflows/gitleaks.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

checkov(CKV2_GHA_1)

[new] Ensure top-level permissions are not set to write-all
on:
pull_request:
push:
workflow_dispatch:
schedule:
- cron: "0 4 * * *" # run once a day at 4 AM

Check failure on line 7 in .github/workflows/gitleaks.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

yamllint(quoted-strings)

[new] string value is redundantly quoted with any quotes
jobs:
scan:
name: gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 # v4
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: "Pull Request Labeler"

Check failure on line 1 in .github/workflows/labeler.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

checkov(CKV2_GHA_1)

[new] Ensure top-level permissions are not set to write-all

Check failure on line 1 in .github/workflows/labeler.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

yamllint(quoted-strings)

[new] string value is redundantly quoted with any quotes

Check failure on line 1 in .github/workflows/labeler.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

prettier

Incorrect formatting, autoformat by running 'trunk fmt'
on:
- pull_request_target

jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
25 changes: 25 additions & 0 deletions .github/workflows/mind-your-language.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Mind your language

Check failure on line 1 in .github/workflows/mind-your-language.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

checkov(CKV2_GHA_1)

[new] Ensure top-level permissions are not set to write-all
on:
issues:
types:
- opened
- edited
issue_comment:
types:
- created
- edited
pull_request_review_comment:
types:
- created
- edited
jobs:
echo_issue_comment:
runs-on: ubuntu-latest
name: profanity check
steps:
- name: Checkout
uses: actions/checkout@v4 # v4
- name: Profanity check step
uses: tailaiw/mind-your-language-action@v1.0.3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 10 additions & 0 deletions .github/workflows/size-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: size-label

Check failure on line 1 in .github/workflows/size-label.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

checkov(CKV2_GHA_1)

[new] Ensure top-level permissions are not set to write-all
on: pull_request
jobs:
size-label:
runs-on: ubuntu-latest
steps:
- name: size-label
uses: "pascalgn/size-label-action@v0.5.0"

Check failure on line 8 in .github/workflows/size-label.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

yamllint(quoted-strings)

[new] string value is redundantly quoted with any quotes
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
14 changes: 14 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Close stale issues and PRs'

Check failure on line 1 in .github/workflows/stale.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

checkov(CKV2_GHA_1)

[new] Ensure top-level permissions are not set to write-all

Check failure on line 1 in .github/workflows/stale.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

yamllint(quoted-strings)

[new] string value is redundantly quoted with any quotes

Check failure on line 1 in .github/workflows/stale.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

prettier

Incorrect formatting, autoformat by running 'trunk fmt'
on:
schedule:
- cron: '30 1 * * *'

Check failure on line 4 in .github/workflows/stale.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

yamllint(quoted-strings)

[new] string value is redundantly quoted with any quotes

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'

Check failure on line 12 in .github/workflows/stale.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

yamllint(quoted-strings)

[new] string value is redundantly quoted with any quotes
days-before-stale: 30
days-before-close: 5
22 changes: 22 additions & 0 deletions .github/workflows/trunk-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Trunk Check
on: [pull_request]
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

permissions: read-all

jobs:
trunk_check:
name: Trunk Check Runner
runs-on: ubuntu-latest
permissions:
checks: write # For trunk to post annotations
contents: read # For repo checkout

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Trunk Check
uses: trunk-io/trunk-action@v1

0 comments on commit 4683267

Please sign in to comment.