mirror of
https://github.com/luxfi/assets.git
synced 2026-07-27 04:37:14 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user