Skip to content

Modern Docker Management, Designed for Everyone

chore: use arcane automation github app

Kyle Mendell2b0de5496c28
diff --git a/.depot/workflows/build-next-images.yml b/.depot/workflows/build-next-images.yml
index 509aa1107..e107adbfd 100644
--- a/.depot/workflows/build-next-images.yml
+++ b/.depot/workflows/build-next-images.yml
@@ -82,6 +82,16 @@ jobs:
echo "node_version=$(node --version)" >> "$GITHUB_OUTPUT"
echo "sveltekit_version=$(vp -C frontend node -p 'require("@sveltejs/kit/package.json").version')" >> "$GITHUB_OUTPUT"
+ - name: Request App Token
+ id: app-token
+ uses: actions/create-github-app-token@v3
+ with:
+ client-id: ${{ secrets.ARCANE_APP_CLIENT_ID }}
+ private-key: ${{ secrets.ARCANE_APP_PRIVATE_KEY }}
+ owner: getarcaneapp
+ repositories: arcane
+ permission-contents: read
+
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v7
with:
@@ -89,7 +99,7 @@ jobs:
version: '~> 2'
args: release --clean --nightly --skip=announce,validate,homebrew
env:
- GITHUB_TOKEN: ${{ secrets.ARCANE_BOT_TOKEN }}
+ GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
BUILD_NEXT: 'true'
diff --git a/.depot/workflows/build-pr-images.yml b/.depot/workflows/build-pr-images.yml
index 14fc2d240..fd2cab5b6 100644
--- a/.depot/workflows/build-pr-images.yml
+++ b/.depot/workflows/build-pr-images.yml
@@ -119,12 +119,23 @@ jobs:
sbom: true
provenance: true
+ - name: Request App Token
+ id: app-token
+ uses: actions/create-github-app-token@v3
+ with:
+ client-id: ${{ secrets.ARCANE_APP_CLIENT_ID }}
+ private-key: ${{ secrets.ARCANE_APP_PRIVATE_KEY }}
+ owner: getarcaneapp
+ repositories: arcane
+ permission-pull-requests: write
+
- name: Find Comment
uses: peter-evans/find-comment@v4
id: fc
with:
+ token: ${{ steps.app-token.outputs.token }}
issue-number: ${{ github.event.pull_request.number }}
- comment-author: "getarcaneappbot"
+ comment-author: "arcane-github-automation[bot]"
body-includes: Container images for this PR have been built successfully!
- name: Comment PR Images
@@ -132,7 +143,7 @@ jobs:
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
- token: ${{ secrets.ARCANE_BOT_TOKEN }}
+ token: ${{ steps.app-token.outputs.token }}
body: |
Container images for this PR have been built successfully!
diff --git a/.depot/workflows/merge-conflict.yml b/.depot/workflows/merge-conflict.yml
index 41d16414b..d9acd8c6f 100644
--- a/.depot/workflows/merge-conflict.yml
+++ b/.depot/workflows/merge-conflict.yml
@@ -19,9 +19,19 @@ jobs:
contents: read
pull-requests: write
steps:
+ - name: Request App Token
+ id: app-token
+ uses: actions/create-github-app-token@v3
+ with:
+ client-id: ${{ secrets.ARCANE_APP_CLIENT_ID }}
+ private-key: ${{ secrets.ARCANE_APP_PRIVATE_KEY }}
+ owner: getarcaneapp
+ repositories: arcane
+ permission-pull-requests: write
+
- name: Apply label
uses: eps1lon/[email protected]
with:
dirtyLabel: "merge conflict"
commentOnDirty: "This pull request has merge conflicts. Please resolve the conflicts so the PR can stay up-to-date and reviewed."
- repoToken: "${{ secrets.GITHUB_TOKEN }}"
+ repoToken: "${{ steps.app-token.outputs.token }}"
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 1b461aecd..400469c55 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -149,18 +149,30 @@ jobs:
echo "$OUTPUT" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
+ - name: Request App Token
+ id: app-token
+ uses: actions/create-github-app-token@v3
+ with:
+ client-id: ${{ secrets.ARCANE_APP_CLIENT_ID }}
+ private-key: ${{ secrets.ARCANE_APP_PRIVATE_KEY }}
+ owner: getarcaneapp
+ repositories: arcane
+ permission-pull-requests: write
+
- name: Find Comment
uses: peter-evans/find-comment@v4
id: fc
with:
+ token: ${{ steps.app-token.outputs.token }}
issue-number: ${{ github.event.pull_request.number }}
- comment-author: "github-actions[bot]"
+ comment-author: "arcane-github-automation[bot]"
body-includes: "## πŸ” Deadcode Analysis"
- name: Delete comment if no deadcode found
if: steps.deadcode.outputs.count == '0' && steps.fc.outputs.comment-id != ''
uses: actions/github-script@v9
with:
+ github-token: ${{ steps.app-token.outputs.token }}
script: |
github.rest.issues.deleteComment({
owner: context.repo.owner,
@@ -174,6 +186,7 @@ jobs:
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
+ token: ${{ steps.app-token.outputs.token }}
body: |
## πŸ” Deadcode Analysis
diff --git a/.github/workflows/lint-pr-title.yml b/.github/workflows/lint-pr-title.yml
index 21fa1186d..88980a9a6 100644
--- a/.github/workflows/lint-pr-title.yml
+++ b/.github/workflows/lint-pr-title.yml
@@ -16,16 +16,27 @@ jobs:
permissions:
pull-requests: read
steps:
+ - name: Request App Token
+ id: app-token
+ uses: actions/create-github-app-token@v3
+ with:
+ client-id: ${{ secrets.ARCANE_APP_CLIENT_ID }}
+ private-key: ${{ secrets.ARCANE_APP_PRIVATE_KEY }}
+ owner: getarcaneapp
+ repositories: arcane
+ permission-pull-requests: write
+
- uses: amannn/action-semantic-pull-request@v6
id: lint_pr_title
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
- uses: marocchino/sticky-pull-request-comment@v3
# When the previous steps fails, the workflow would stop. By adding this
# condition you can continue the execution with the populated error message.
if: always() && (steps.lint_pr_title.outputs.error_message != null)
with:
+ GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
header: pr-title-lint-error
message: |
Hey there and thank you for opening this pull request! πŸ‘‹πŸΌ
@@ -42,5 +53,6 @@ jobs:
- if: ${{ steps.lint_pr_title.outputs.error_message == null }}
uses: marocchino/sticky-pull-request-comment@v3
with:
+ GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
header: pr-title-lint-error
delete: true
diff --git a/.github/workflows/potential-duplicate-issues.yml b/.github/workflows/potential-duplicate-issues.yml
index 015003219..198af3cd2 100644
--- a/.github/workflows/potential-duplicate-issues.yml
+++ b/.github/workflows/potential-duplicate-issues.yml
@@ -7,9 +7,19 @@ jobs:
run:
runs-on: depot-ubuntu-latest
steps:
+ - name: Request App Token
+ id: app-token
+ uses: actions/create-github-app-token@v3
+ with:
+ client-id: ${{ secrets.ARCANE_APP_CLIENT_ID }}
+ private-key: ${{ secrets.ARCANE_APP_PRIVATE_KEY }}
+ owner: getarcaneapp
+ repositories: arcane
+ permission-issues: write
+
- uses: wow-actions/potential-duplicates@4d4ea0352e0383859279938e255179dd1dbb67b5 #v1.1.0
with:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
filter: ""
exclude: "regression"
label: potential-duplicate
diff --git a/.github/workflows/pr-quality.yml b/.github/workflows/pr-quality.yml
index b607657af..8337665d8 100644
--- a/.github/workflows/pr-quality.yml
+++ b/.github/workflows/pr-quality.yml
@@ -13,8 +13,22 @@ jobs:
pr-quality:
runs-on: ubuntu-latest
steps:
+ - name: Request App Token
+ id: app-token
+ uses: actions/create-github-app-token@v3
+ with:
+ client-id: ${{ secrets.ARCANE_APP_CLIENT_ID }}
+ private-key: ${{ secrets.ARCANE_APP_PRIVATE_KEY }}
+ owner: getarcaneapp
+ repositories: arcane
+ permission-contents: read
+ permission-issues: write
+ permission-pull-requests: write
+
- uses: peakoss/anti-slop@v0
with:
+ github-token: ${{ steps.app-token.outputs.token }}
+
# General Settings
max-failures: 4
@@ -80,7 +94,7 @@ jobs:
dependabot[bot]
renovate[bot]
github-actions[bot]
- getarcaneappbot
+ arcane-github-automation[bot]
exempt-users: ""
exempt-author-association: "OWNER,MEMBER,COLLABORATOR"
exempt-label: "quality/exempt"
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index bd05614ec..194e3c418 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -84,6 +84,16 @@ jobs:
echo "node_version=$(node --version)" >> "$GITHUB_OUTPUT"
echo "sveltekit_version=$(vp -C frontend node -p 'require("@sveltejs/kit/package.json").version')" >> "$GITHUB_OUTPUT"
+ - name: Request App Token
+ id: app-token
+ uses: actions/create-github-app-token@v3
+ with:
+ client-id: ${{ secrets.ARCANE_APP_CLIENT_ID }}
+ private-key: ${{ secrets.ARCANE_APP_PRIVATE_KEY }}
+ owner: getarcaneapp
+ repositories: arcane,homebrew-tap
+ permission-contents: write
+
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v7
with:
@@ -91,7 +101,7 @@ jobs:
version: "~> v2"
args: release --clean --skip=validate
env:
- GITHUB_TOKEN: ${{ secrets.ARCANE_BOT_TOKEN }}
+ GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}