diff --git a/.github/workflows/_go-checks.yaml b/.github/workflows/_go-checks.yaml index e532afd..75ba3c6 100644 --- a/.github/workflows/_go-checks.yaml +++ b/.github/workflows/_go-checks.yaml @@ -21,7 +21,20 @@ jobs: permissions: contents: read steps: + - name: Generate token + id: generate-token + uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 + with: + app-id: ${{ secrets.TERO_BOT_CLIENT_ID }} + private-key: ${{ secrets.TERO_BOT_PRIVATE_SIGNING_KEY }} + owner: ${{ github.repository_owner }} + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + token: ${{ steps.generate-token.outputs.token }} + + - name: Configure Git for private Hermit sources + run: git config --global url.https://x-access-token:${{ steps.generate-token.outputs.token }}@github.com/.insteadOf https://github.com/ - name: Setup Hermit uses: cashapp/activate-hermit@e49f5cb4dd64ff0b0b659d1d8df499595451155a # v1 @@ -37,7 +50,20 @@ jobs: permissions: contents: read steps: + - name: Generate token + id: generate-token + uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 + with: + app-id: ${{ secrets.TERO_BOT_CLIENT_ID }} + private-key: ${{ secrets.TERO_BOT_PRIVATE_SIGNING_KEY }} + owner: ${{ github.repository_owner }} + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + token: ${{ steps.generate-token.outputs.token }} + + - name: Configure Git for private Hermit sources + run: git config --global url.https://x-access-token:${{ steps.generate-token.outputs.token }}@github.com/.insteadOf https://github.com/ - name: Setup Hermit uses: cashapp/activate-hermit@e49f5cb4dd64ff0b0b659d1d8df499595451155a # v1 @@ -53,7 +79,20 @@ jobs: permissions: contents: read steps: + - name: Generate token + id: generate-token + uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 + with: + app-id: ${{ secrets.TERO_BOT_CLIENT_ID }} + private-key: ${{ secrets.TERO_BOT_PRIVATE_SIGNING_KEY }} + owner: ${{ github.repository_owner }} + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + token: ${{ steps.generate-token.outputs.token }} + + - name: Configure Git for private Hermit sources + run: git config --global url.https://x-access-token:${{ steps.generate-token.outputs.token }}@github.com/.insteadOf https://github.com/ - name: Setup Hermit uses: cashapp/activate-hermit@e49f5cb4dd64ff0b0b659d1d8df499595451155a # v1 @@ -69,7 +108,20 @@ jobs: permissions: contents: read steps: + - name: Generate token + id: generate-token + uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 + with: + app-id: ${{ secrets.TERO_BOT_CLIENT_ID }} + private-key: ${{ secrets.TERO_BOT_PRIVATE_SIGNING_KEY }} + owner: ${{ github.repository_owner }} + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + token: ${{ steps.generate-token.outputs.token }} + + - name: Configure Git for private Hermit sources + run: git config --global url.https://x-access-token:${{ steps.generate-token.outputs.token }}@github.com/.insteadOf https://github.com/ - name: Setup Hermit uses: cashapp/activate-hermit@e49f5cb4dd64ff0b0b659d1d8df499595451155a # v1 @@ -99,7 +151,20 @@ jobs: permissions: contents: read steps: + - name: Generate token + id: generate-token + uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 + with: + app-id: ${{ secrets.TERO_BOT_CLIENT_ID }} + private-key: ${{ secrets.TERO_BOT_PRIVATE_SIGNING_KEY }} + owner: ${{ github.repository_owner }} + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + token: ${{ steps.generate-token.outputs.token }} + + - name: Configure Git for private Hermit sources + run: git config --global url.https://x-access-token:${{ steps.generate-token.outputs.token }}@github.com/.insteadOf https://github.com/ - name: Setup Hermit uses: cashapp/activate-hermit@e49f5cb4dd64ff0b0b659d1d8df499595451155a # v1 @@ -120,7 +185,20 @@ jobs: permissions: contents: read steps: + - name: Generate token + id: generate-token + uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 + with: + app-id: ${{ secrets.TERO_BOT_CLIENT_ID }} + private-key: ${{ secrets.TERO_BOT_PRIVATE_SIGNING_KEY }} + owner: ${{ github.repository_owner }} + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + token: ${{ steps.generate-token.outputs.token }} + + - name: Configure Git for private Hermit sources + run: git config --global url.https://x-access-token:${{ steps.generate-token.outputs.token }}@github.com/.insteadOf https://github.com/ - name: Setup Hermit uses: cashapp/activate-hermit@e49f5cb4dd64ff0b0b659d1d8df499595451155a # v1 diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 1b3cd34..ad03608 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -24,7 +24,20 @@ jobs: permissions: contents: read steps: + - name: Generate token + id: generate-token + uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1 + with: + app-id: ${{ secrets.TERO_BOT_CLIENT_ID }} + private-key: ${{ secrets.TERO_BOT_PRIVATE_SIGNING_KEY }} + owner: ${{ github.repository_owner }} + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + token: ${{ steps.generate-token.outputs.token }} + + - name: Configure Git for private Hermit sources + run: git config --global url.https://x-access-token:${{ steps.generate-token.outputs.token }}@github.com/.insteadOf https://github.com/ - name: Setup Hermit uses: cashapp/activate-hermit@e49f5cb4dd64ff0b0b659d1d8df499595451155a # v1 diff --git a/.github/workflows/workflow-lint.yaml b/.github/workflows/workflow-lint.yaml index a9b3ae8..ed0bb25 100644 --- a/.github/workflows/workflow-lint.yaml +++ b/.github/workflows/workflow-lint.yaml @@ -20,6 +20,6 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - name: Run actionlint - uses: reviewdog/action-actionlint@f45e6423f07e6ea6fce879bbdb0d74407c1fbf55 # v1 + uses: reviewdog/action-actionlint@6fb7acc99f4a1008869fa8a0f09cfca740837d9d # v1 with: fail_level: any diff --git a/bin/.go-1.26.0.pkg b/bin/.go-1.26.1.pkg similarity index 100% rename from bin/.go-1.26.0.pkg rename to bin/.go-1.26.1.pkg diff --git a/bin/.ripgrep-15.1.0.pkg b/bin/.ripgrep-15.1.0.pkg new file mode 120000 index 0000000..383f451 --- /dev/null +++ b/bin/.ripgrep-15.1.0.pkg @@ -0,0 +1 @@ +hermit \ No newline at end of file diff --git a/bin/go b/bin/go index eabd385..99e8783 120000 --- a/bin/go +++ b/bin/go @@ -1 +1 @@ -.go-1.26.0.pkg \ No newline at end of file +.go-1.26.1.pkg \ No newline at end of file diff --git a/bin/gofmt b/bin/gofmt index eabd385..99e8783 120000 --- a/bin/gofmt +++ b/bin/gofmt @@ -1 +1 @@ -.go-1.26.0.pkg \ No newline at end of file +.go-1.26.1.pkg \ No newline at end of file diff --git a/bin/hermit.hcl b/bin/hermit.hcl index 081cbe8..297f158 100644 --- a/bin/hermit.hcl +++ b/bin/hermit.hcl @@ -1,2 +1,4 @@ +sources = ["https://github.com/usetero/hermit-packages.git", "https://github.com/cashapp/hermit-packages.git"] + github-token-auth { } diff --git a/bin/rg b/bin/rg new file mode 120000 index 0000000..fa2775b --- /dev/null +++ b/bin/rg @@ -0,0 +1 @@ +.ripgrep-15.1.0.pkg \ No newline at end of file diff --git a/go.mod b/go.mod index d7c50a9..afb0da5 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/usetero/cli -go 1.25.0 +go 1.26.1 require ( charm.land/bubbles/v2 v2.0.0-rc.1.0.20260109112849-ae99f46cec66 @@ -57,11 +57,11 @@ require ( github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect github.com/yuin/goldmark v1.7.16 // indirect github.com/yuin/goldmark-emoji v1.0.6 // indirect - golang.org/x/net v0.50.0 // indirect - golang.org/x/sync v0.19.0 // indirect - golang.org/x/sys v0.41.0 // indirect - golang.org/x/text v0.34.0 // indirect - golang.org/x/tools v0.41.0 // indirect + golang.org/x/net v0.52.0 // indirect + golang.org/x/sync v0.20.0 // indirect + golang.org/x/sys v0.42.0 // indirect + golang.org/x/text v0.35.0 // indirect + golang.org/x/tools v0.42.0 // indirect gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect ) diff --git a/go.sum b/go.sum index 137a3d0..20167a5 100644 --- a/go.sum +++ b/go.sum @@ -168,15 +168,25 @@ golang.org/x/mod v0.33.0 h1:tHFzIWbBifEmbwtGz65eaWyGiGZatSrT9prnU8DbVL8= golang.org/x/mod v0.33.0/go.mod h1:swjeQEj+6r7fODbD2cqrnje9PnziFuw4bmLbBZFrQ5w= golang.org/x/net v0.50.0 h1:ucWh9eiCGyDR3vtzso0WMQinm2Dnt8cFMuQa9K33J60= golang.org/x/net v0.50.0/go.mod h1:UgoSli3F/pBgdJBHCTc+tp3gmrU4XswgGRgtnwWTfyM= +golang.org/x/net v0.52.0 h1:He/TN1l0e4mmR3QqHMT2Xab3Aj3L9qjbhRm78/6jrW0= +golang.org/x/net v0.52.0/go.mod h1:R1MAz7uMZxVMualyPXb+VaqGSa3LIaUqk0eEt3w36Sw= golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4= golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= +golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4= +golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.41.0 h1:Ivj+2Cp/ylzLiEU89QhWblYnOE9zerudt9Ftecq2C6k= golang.org/x/sys v0.41.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/sys v0.42.0 h1:omrd2nAlyT5ESRdCLYdm3+fMfNFE/+Rf4bDIQImRJeo= +golang.org/x/sys v0.42.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= golang.org/x/text v0.34.0 h1:oL/Qq0Kdaqxa1KbNeMKwQq0reLCCaFtqu2eNuSeNHbk= golang.org/x/text v0.34.0/go.mod h1:homfLqTYRFyVYemLBFl5GgL/DWEiH5wcsQ5gSh1yziA= +golang.org/x/text v0.35.0 h1:JOVx6vVDFokkpaq1AEptVzLTpDe9KGpj5tR4/X+ybL8= +golang.org/x/text v0.35.0/go.mod h1:khi/HExzZJ2pGnjenulevKNX1W67CUy0AsXcNubPGCA= golang.org/x/tools v0.41.0 h1:a9b8iMweWG+S0OBnlU36rzLp20z1Rp10w+IY2czHTQc= golang.org/x/tools v0.41.0/go.mod h1:XSY6eDqxVNiYgezAVqqCeihT4j1U2CCsqvH3WhQpnlg= +golang.org/x/tools v0.42.0 h1:uNgphsn75Tdz5Ji2q36v/nsFSfR/9BRFvqhGBaJGd5k= +golang.org/x/tools v0.42.0/go.mod h1:Ma6lCIwGZvHK6XtgbswSoWroEkhugApmsXyrUmBhfr0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=