Upgrading versions

This commit is contained in:
SnskArora 2025-06-02 18:27:07 +05:30
parent a1f96b91e2
commit dddc4621fc
No known key found for this signature in database
GPG key ID: 6EC7FEA48093AB59
4 changed files with 34 additions and 10 deletions

View file

@ -5,6 +5,7 @@ on:
push:
branches:
- main
- '**'
paths-ignore:
- '**/*.md'
pull_request:
@ -17,17 +18,40 @@ jobs:
ci:
name: CI
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Refresh module hashsums
run: make tidy
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: snskArora
password: ${{ secrets.grained_auth }}
- name: Build
run: make build
env:
VERSION: latest
- name: Push
run: make push
env:
VERSION: latest
- name: Test
run: make test
- name: Lint

View file

@ -1,5 +1,5 @@
IMAGE_REPO=ghcr.io/trstringer/manual-approval
TARGET_PLATFORM=linux/amd64
IMAGE_REPO=ghcr.io/snskarora/manual-approval
TARGET_PLATFORM?=linux/amd64
.PHONY: tidy
tidy:
@ -27,4 +27,4 @@ test:
.PHONY: lint
lint:
docker run --rm -v $$(pwd):/app -w /app golangci/golangci-lint:v1.46.2 golangci-lint run -v
docker run --rm -v $$(pwd):/app -w /app golangci/golangci-lint:v2.1.6 golangci-lint run -v

View file

@ -50,4 +50,4 @@ outputs:
description: The status of the approval ("approved" or "denied")
runs:
using: docker
image: docker://ghcr.io/trstringer/manual-approval:1.10.0
image: docker://ghcr.io/snskArora/manual-approval:latest

12
go.mod
View file

@ -1,17 +1,17 @@
module github.com/trstringer/manual-approval
go 1.17
go 1.24
require (
github.com/google/go-github/v43 v43.0.0
golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a
golang.org/x/oauth2 v0.30.0
)
require (
github.com/golang/protobuf v1.4.2 // indirect
github.com/golang/protobuf v1.5.0 // indirect
github.com/google/go-querystring v1.1.0 // indirect
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect
golang.org/x/crypto v0.35.0 // indirect
golang.org/x/net v0.21.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.25.0 // indirect
google.golang.org/protobuf v1.33.0 // indirect
)