From 842c7b550e215906295990d8072369b4e22de9ed Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 3 Sep 2024 16:17:45 -0400 Subject: [PATCH 1/6] try things --- .github/workflows/version_updater.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/version_updater.yaml b/.github/workflows/version_updater.yaml index d2911bcba5..21ff30c5ea 100644 --- a/.github/workflows/version_updater.yaml +++ b/.github/workflows/version_updater.yaml @@ -1,5 +1,8 @@ name: Version Updater on: + push: + branches: + - troubleshoot-version-updater schedule: # Runs at 00:00 every day - cron: '0 0 * * *' @@ -9,10 +12,11 @@ jobs: update-nuclei-version: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: ref: dev fetch-depth: 0 + token: ${{ secrets.BBOT_DOCS_UPDATER_PAT }} - name: Set up Python uses: actions/setup-python@v4 with: @@ -54,16 +58,15 @@ jobs: # Release notes: ${{ env.release_notes }} branch: "update-nuclei" - committer: GitHub - author: GitHub assignees: "TheTechromancer" update-trufflehog-version: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: ref: dev fetch-depth: 0 + token: ${{ secrets.BBOT_DOCS_UPDATER_PAT }} - name: Set up Python uses: actions/setup-python@v4 with: @@ -105,6 +108,4 @@ jobs: # Release notes: ${{ env.release_notes }} branch: "update-trufflehog" - committer: GitHub - author: GitHub assignees: "TheTechromancer" \ No newline at end of file From e5097f9acc3504a96f45ea88c5e35aabea598f4d Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 3 Sep 2024 16:36:17 -0400 Subject: [PATCH 2/6] update committer/author --- .github/workflows/version_updater.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/version_updater.yaml b/.github/workflows/version_updater.yaml index 21ff30c5ea..c4b7bb362f 100644 --- a/.github/workflows/version_updater.yaml +++ b/.github/workflows/version_updater.yaml @@ -58,6 +58,8 @@ jobs: # Release notes: ${{ env.release_notes }} branch: "update-nuclei" + committer: blsaccess + author: blsaccess assignees: "TheTechromancer" update-trufflehog-version: runs-on: ubuntu-latest @@ -108,4 +110,6 @@ jobs: # Release notes: ${{ env.release_notes }} branch: "update-trufflehog" + committer: blsaccess + author: blsaccess assignees: "TheTechromancer" \ No newline at end of file From 4c08dfaebc38169ae35d1fdb4367fbb84b1f55eb Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 3 Sep 2024 16:53:39 -0400 Subject: [PATCH 3/6] succeed dammit --- .github/workflows/version_updater.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/version_updater.yaml b/.github/workflows/version_updater.yaml index c4b7bb362f..c3892aac48 100644 --- a/.github/workflows/version_updater.yaml +++ b/.github/workflows/version_updater.yaml @@ -8,6 +8,10 @@ on: - cron: '0 0 * * *' workflow_dispatch: # Adds the ability to manually trigger the workflow +permissions: + contents: write + pull-requests: write + jobs: update-nuclei-version: runs-on: ubuntu-latest From 39edc327cd30a57985936fd7eda413fb3433e64f Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 3 Sep 2024 16:57:08 -0400 Subject: [PATCH 4/6] token on checkout only --- .github/workflows/version_updater.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/version_updater.yaml b/.github/workflows/version_updater.yaml index c3892aac48..76732a2b48 100644 --- a/.github/workflows/version_updater.yaml +++ b/.github/workflows/version_updater.yaml @@ -53,7 +53,7 @@ jobs: if: steps.update-version.outcome == 'success' uses: peter-evans/create-pull-request@v5 with: - token: ${{ secrets.BBOT_DOCS_UPDATER_PAT }} + # token: ${{ secrets.BBOT_DOCS_UPDATER_PAT }} commit-message: "Update nuclei" title: "Update nuclei to ${{ env.latest_version }}" body: | @@ -105,7 +105,7 @@ jobs: if: steps.update-version.outcome == 'success' uses: peter-evans/create-pull-request@v5 with: - token: ${{ secrets.BBOT_DOCS_UPDATER_PAT }} + # token: ${{ secrets.BBOT_DOCS_UPDATER_PAT }} commit-message: "Update trufflehog" title: "Update trufflehog to ${{ env.latest_version }}" body: | From f4bc545c1c4695c22326f2f1126372b5eb362ec4 Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 3 Sep 2024 17:04:52 -0400 Subject: [PATCH 5/6] succeed dammit --- .github/workflows/version_updater.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/version_updater.yaml b/.github/workflows/version_updater.yaml index 76732a2b48..c3892aac48 100644 --- a/.github/workflows/version_updater.yaml +++ b/.github/workflows/version_updater.yaml @@ -53,7 +53,7 @@ jobs: if: steps.update-version.outcome == 'success' uses: peter-evans/create-pull-request@v5 with: - # token: ${{ secrets.BBOT_DOCS_UPDATER_PAT }} + token: ${{ secrets.BBOT_DOCS_UPDATER_PAT }} commit-message: "Update nuclei" title: "Update nuclei to ${{ env.latest_version }}" body: | @@ -105,7 +105,7 @@ jobs: if: steps.update-version.outcome == 'success' uses: peter-evans/create-pull-request@v5 with: - # token: ${{ secrets.BBOT_DOCS_UPDATER_PAT }} + token: ${{ secrets.BBOT_DOCS_UPDATER_PAT }} commit-message: "Update trufflehog" title: "Update trufflehog to ${{ env.latest_version }}" body: | From fa34c99a5bdc5adaeb0c847ff19d89117a33a7b1 Mon Sep 17 00:00:00 2001 From: github-actions Date: Wed, 4 Sep 2024 10:06:33 -0400 Subject: [PATCH 6/6] clean up PR --- .github/workflows/version_updater.yaml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/version_updater.yaml b/.github/workflows/version_updater.yaml index c3892aac48..bb149820cf 100644 --- a/.github/workflows/version_updater.yaml +++ b/.github/workflows/version_updater.yaml @@ -1,17 +1,10 @@ name: Version Updater on: - push: - branches: - - troubleshoot-version-updater schedule: # Runs at 00:00 every day - cron: '0 0 * * *' workflow_dispatch: # Adds the ability to manually trigger the workflow -permissions: - contents: write - pull-requests: write - jobs: update-nuclei-version: runs-on: ubuntu-latest