Skip to content

Use master verison for jfrog dependencies #6004

Use master verison for jfrog dependencies

Use master verison for jfrog dependencies #6004

Workflow file for this run

name: "Static Analysis"
on:
push:
branches:
- "master"
tags-ignore:
- "**"
pull_request_target:
types: [opened, synchronize]
branches:
- "master"
permissions:
contents: read
pull-requests: read
jobs:
Static-Check:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- name: Setup Go with cache
uses: jfrog/.github/actions/install-go-with-cache@main
- name: Run golangci linter
uses: jfrog/.github/actions/golangci-lint@main
Go-Sec:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
fetch-depth: 0
- name: Setup Go with cache
uses: jfrog/.github/actions/install-go-with-cache@main
- name: Run Go-Sec scanner
uses: jfrog/.github/actions/gosec-scanner@main
No-Replace:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- name: Check for uncommented replace instructions
run: |
if grep -E '^[[:space:]]*replace[[:space:]]' go.mod; then
echo "❌ Found uncommented replace directives in go.mod"
echo "All replace directives should be commented out"
exit 1
else
echo "✅ No uncommented replace directives found in go.mod"
fi