Skip to content

Commit

Permalink
Merge pull request #47 from koluku/feature/use-github-app
Browse files Browse the repository at this point in the history
use github app instead of github pat
  • Loading branch information
koluku committed Sep 26, 2022
2 parents f8c1f72 + 2c77f3f commit 3a62d70
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ jobs:
steps:
- name: Set up Go
uses: actions/setup-go@v3
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v3
with:
Expand All @@ -21,5 +27,4 @@ jobs:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
10 changes: 7 additions & 3 deletions .github/workflows/tagpr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ jobs:
tagpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
token: ${{ secrets.S3S_TAGPR_GITHUB_TOKEN }}
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- uses: actions/checkout@v3
- uses: Songmu/tagpr@v1
env:
GITHUB_TOKEN: ${{ secrets.S3S_TAGPR_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: test
on:
push:
branches:
- "*"
- "**"

jobs:
go-versions:
Expand Down
1 change: 0 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ brews:
- tap:
owner: koluku
name: homebrew-s3s
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
folder: Formula
homepage: 'https://github.com/koluku/s3s'
description: 'Easy S3 select like searching in directories'

0 comments on commit 3a62d70

Please sign in to comment.