Update fossa workflow's action version and trigger branches (#15)

* Pin fossa-action version

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Update branch naming for workflow

Signed-off-by: Shubham Sharma <shubhash@microsoft.com>

* Fix lint step in GHA.

Signed-off-by: Artur Souza <artursouza.ms@outlook.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
This commit is contained in:
Shubham Sharma 2022-04-21 05:27:22 +05:30 committed by GitHub
parent 3b069ad2b1
commit 15a34b12af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 9 deletions

View File

@ -15,16 +15,12 @@ name: fossa
on:
push:
branches:
- master
- release-*
- feature/*
- main
tags:
- v*
pull_request:
branches:
- master
- release-*
- feature/*
- main
workflow_dispatch: {}
jobs:
fossa-scan:
@ -37,12 +33,12 @@ jobs:
uses: actions/checkout@v2
- name: "Run FOSSA Scan"
uses: fossas/fossa-action@main # Use a specific version if locking is preferred
uses: fossas/fossa-action@v1.1.0 # Use a specific version if locking is preferred
with:
api-key: ${{ env.FOSSA_API_KEY }}
- name: "Run FOSSA Test"
uses: fossas/fossa-action@main # Use a specific version if locking is preferred
uses: fossas/fossa-action@v1.1.0 # Use a specific version if locking is preferred
with:
api-key: ${{ env.FOSSA_API_KEY }}
run-tests: true

View File

@ -51,7 +51,7 @@ jobs:
uses: actions/checkout@v2
- name: Run golangci-lint
if: matrix.target_arch == 'amd64' && matrix.target_os == 'linux'
uses: golangci/golangci-lint-action@v2.2.1
uses: golangci/golangci-lint-action@v3.1.0
with:
version: ${{ env.GOLANGCI_LINT_VER }}
- name: Run make go.mod check-diff