From f300d3ad7ca3559ef70ed43744355fdfe861cacd Mon Sep 17 00:00:00 2001 From: Harry Solovay Date: Tue, 4 Oct 2022 19:15:25 +0700 Subject: [PATCH] misc CI cleanup --- .../{secretscheck.yml => check_secrets.yml} | 12 +++++------- .github/workflows/configure.yml | 2 +- ...profanitycheck.yml => mind_your_language.yml} | 6 +++--- .github/workflows/validate_pr_title.yml | 16 ++++++++++++++++ words.txt | 1 + 5 files changed, 26 insertions(+), 11 deletions(-) rename .github/workflows/{secretscheck.yml => check_secrets.yml} (63%) rename .github/workflows/{profanitycheck.yml => mind_your_language.yml} (83%) create mode 100644 .github/workflows/validate_pr_title.yml diff --git a/.github/workflows/secretscheck.yml b/.github/workflows/check_secrets.yml similarity index 63% rename from .github/workflows/secretscheck.yml rename to .github/workflows/check_secrets.yml index d2bd34b8c..68d613e45 100644 --- a/.github/workflows/secretscheck.yml +++ b/.github/workflows/check_secrets.yml @@ -1,22 +1,20 @@ -name: Secrets check +name: Check Secrets on: push: branches: - - master + - master pull_request: types: - - created + - opened - edited jobs: TruffleHog: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v3 + - uses: actions/checkout@v3 with: fetch-depth: 0 - - name: TruffleHog OSS - uses: trufflesecurity/trufflehog@main + - uses: trufflesecurity/trufflehog@main with: path: ./ base: ${{ github.event.repository.default_branch }} diff --git a/.github/workflows/configure.yml b/.github/workflows/configure.yml index deecea0d0..239c2313c 100644 --- a/.github/workflows/configure.yml +++ b/.github/workflows/configure.yml @@ -8,7 +8,7 @@ on: jobs: configure: name: Configure - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: micnncim/action-label-syncer@3abd5ab72fda571e69fffd97bd4e0033dd5f495c # v1.3.0 diff --git a/.github/workflows/profanitycheck.yml b/.github/workflows/mind_your_language.yml similarity index 83% rename from .github/workflows/profanitycheck.yml rename to .github/workflows/mind_your_language.yml index cda93a8ca..a1885c3f7 100644 --- a/.github/workflows/profanitycheck.yml +++ b/.github/workflows/mind_your_language.yml @@ -1,4 +1,4 @@ -name: Profanity check +name: Mind Your Language on: issues: types: @@ -10,7 +10,7 @@ on: - edited pull_request: types: - - created + - opened - edited pull_request_review_comment: types: @@ -26,4 +26,4 @@ jobs: - name: Profanity check step uses: tailaiw/mind-your-language-action@v1.0.3 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/validate_pr_title.yml b/.github/workflows/validate_pr_title.yml new file mode 100644 index 000000000..f6b704041 --- /dev/null +++ b/.github/workflows/validate_pr_title.yml @@ -0,0 +1,16 @@ +name: Validate PR Title +on: + pull_request_target: + types: + - opened + - edited + - synchronize + +jobs: + main: + name: Validate PR Title + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v4 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/words.txt b/words.txt index 6bcd390bd..b75595ee8 100644 --- a/words.txt +++ b/words.txt @@ -174,3 +174,4 @@ autoremove trufflesecurity tailaiw trufflehog +amannn