Skip to content

Commit

Permalink
Merge pull request #484 from marigarciamlopes/Fix/483
Browse files Browse the repository at this point in the history
Fix/483
  • Loading branch information
MartinezAvellan authored Jan 29, 2025
2 parents a2ed027 + fe3e296 commit dce95b6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/go-combined-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,16 @@ jobs:
name: Run GoLangCI-Lint to Midaz
runs-on: ubuntu-24.04
steps:
- uses: actions/create-github-app-token@v1
- name: create github app token
if: github.event.pull_request.head.repo.fork == false
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.LERIAN_STUDIO_MIDAZ_PUSH_BOT_APP_ID }}
private-key: ${{ secrets.LERIAN_STUDIO_MIDAZ_PUSH_BOT_PRIVATE_KEY }}

- name: Import GPG key
if: github.event.pull_request.head.repo.fork == false
uses: crazy-max/ghaction-import-gpg@v6
id: import_gpg
with:
Expand All @@ -72,7 +75,8 @@ jobs:

- uses: actions/checkout@v4

- name: GoLangCI-Lint
- name: GoLangCI-Lint-Repo
if: github.event.pull_request.head.repo.fork == false
uses: reviewdog/action-golangci-lint@v2
with:
github_token: ${{ steps.app-token.outputs.token }}
Expand All @@ -90,6 +94,19 @@ jobs:
GIT_COMMITTER_NAME: ${{ secrets.LERIAN_CI_CD_USER_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.LERIAN_CI_CD_USER_EMAIL }}

- name: GoLangCI-Setup-Go-fork
if: github.event.pull_request.head.repo.fork == true
uses: actions/setup-go@v5
with:
go-version: '1.21'
cache: false

- name: GoLangCI-Lint-fork
if: github.event.pull_request.head.repo.fork == true
uses: golangci/golangci-lint-action@v4
with:
version: latest

GoSec:
name: Run GoSec to Midaz
runs-on: ubuntu-24.04
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-env-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ permissions:

jobs:
update-env-release:
if: github.event.pull_request.head.repo.fork == false
name: Run update VERSION in every ENV on components
runs-on: ubuntu-24.04
steps:
Expand Down

0 comments on commit dce95b6

Please sign in to comment.