Skip to content

fix(deps): update dependency nabeken/go-github-apps to v0.1.11 #363

fix(deps): update dependency nabeken/go-github-apps to v0.1.11

fix(deps): update dependency nabeken/go-github-apps to v0.1.11 #363

Workflow file for this run

name: Go
on:
- push
- pull_request
env:
# renovate: datasource=golang-version depName=golang
GO_VERSION: '1.21.4'
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4
with:
go-version: '${{ env.GO_VERSION }}'
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -cover ./...
- name: Test with Github API
run: |
T=$(mktemp)
trap "rm -f $T" 1 2 3 15
urlparam=""
if [ -n "${GITHUB_URL}" ]; then
urlparam="-url ${GITHUB_URL}"
fi
eval "$(./go-github-apps -export -app-id "${GH_APP_ID}" -inst-id "${GH_APP_INST_ID}")"
curl --fail -H "Authorization: token ${GITHUB_TOKEN}" https://api.github.com/
env:
GH_APP_INST_ID: ${{ secrets.installation_id }}
GH_APP_ID: ${{ secrets.app_id }}
GITHUB_PRIV_KEY: ${{ secrets.private_key }}