From dddc4621fc36c8c1006ea95dd1051629b4c403a1 Mon Sep 17 00:00:00 2001 From: SnskArora Date: Mon, 2 Jun 2025 18:27:07 +0530 Subject: [PATCH] Upgrading versions --- .github/workflows/ci.yaml | 24 ++++++++++++++++++++++++ Makefile | 6 +++--- action.yaml | 2 +- go.mod | 12 ++++++------ 4 files changed, 34 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c0d4e03..8f0475b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/Makefile b/Makefile index 54f20b9..be6e63c 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/action.yaml b/action.yaml index 0126c0a..610752a 100644 --- a/action.yaml +++ b/action.yaml @@ -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 diff --git a/go.mod b/go.mod index 413e6d2..1e77e40 100644 --- a/go.mod +++ b/go.mod @@ -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 )