makefile udpate (#24647)

* makefile udpate

* only run fix all for trustwallet org, fix-dryrun is executed for forks

* update codeql workflow
This commit is contained in:
Dmytro
2023-04-12 13:51:35 +03:00
committed by GitHub
parent db7b831964
commit 1e91427b0f
4 changed files with 36 additions and 53 deletions
+2 -15
View File
@@ -54,21 +54,8 @@ jobs:
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
# ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh
- name: Build assets binary
run: make build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
+7 -17
View File
@@ -1,20 +1,19 @@
name: Fixes
# Runs on:
# - on master branch of trustwallet repo: fix, checkin
# - on other branch of trustwallet repo: fix, checkin
# - on fork repos: fix-sanity only
name: Fix All
on:
push:
branches:
- 'master'
- '*'
workflow_dispatch:
jobs:
fix-all:
runs-on: ubuntu-latest
if: github.repository_owner == 'trustwallet' && github.event.repository.fork == false
steps:
- name: Checkout (trustwallet repo, secret token)
if: github.repository_owner == 'trustwallet'
uses: actions/checkout@v3
with:
# Use trust-ci fine-grained PAT to checkout and later commit the code
@@ -22,21 +21,12 @@ jobs:
token: ${{ secrets.CI_GITHUB_TOKEN }}
ref: ${{ github.ref }}
- name: Checkout (fork repo, default token)
if: github.repository_owner != 'trustwallet'
uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.ref }}
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.18
id: go
- name: Run fix
if: github.repository_owner == 'trustwallet'
run: make fix
- name: Show fix result (diff)
@@ -53,4 +43,4 @@ jobs:
with:
commit_user_name: trust-ci
commit_user_email: "117647528+trust-ci@users.noreply.github.com"
commit_message: Fixes (sanity and consistency, auto)
commit_message: Auto fix all (sanity and consistency)