Skip to content

Commit

Permalink
chore: adjust .github
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Stewart <christian@aperture.us>
  • Loading branch information
paralin committed May 11, 2024
1 parent 0ca945b commit d8a96a7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 30 deletions.
17 changes: 9 additions & 8 deletions .github/renovate.json
Expand Up @@ -6,13 +6,14 @@
"group:all",
"workarounds:all"
],
"forkProcessing": "enabled",
"branchConcurrentLimit": 0,
"packageRules": [{
"matchManagers": ["gomod"],
"matchDepTypes": ["replace"],
"enabled": false
}, {
"matchPackageNames": ["github.com/libp2p/go-libp2p"],
"allowedVersions": ["^v0.*"]
}]
"ignorePaths": ["hack"],
"packageRules": [
{
"matchManagers": ["gomod"],
"matchDepTypes": ["replace", "toolchain"],
"enabled": false
}
]
}
30 changes: 8 additions & 22 deletions .github/workflows/codeql-analysis.yml
Expand Up @@ -25,40 +25,26 @@ jobs:
fail-fast: false
matrix:
language: [ 'go' ]
go: ['1.22']
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5

# Initializes the CodeQL tools for scanning.
- name: Setup Go ${{ matrix.go }}
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: ${{ matrix.go }}

- name: Initialize CodeQL
uses: github/codeql-action/init@ccf74c947955fd1cf117aef6a0e4e66191ef6f61 # v3.25.4
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# 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#, 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@ccf74c947955fd1cf117aef6a0e4e66191ef6f61 # v3.25.4

# ℹ️ 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 Go
run: go build -mod=readonly -v ./...

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@ccf74c947955fd1cf117aef6a0e4e66191ef6f61 # v3.25.4

0 comments on commit d8a96a7

Please sign in to comment.