Skip to content

Commit

Permalink
build: add fossa scan to main workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hairyhum committed Oct 31, 2024
1 parent f958887 commit 5975c3c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ jobs:
run: echo "${{needs.gomod.outputs.gosum}}" > go.sum
- run: make golint

fossa_scan:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: fossas/fossa-action@main # Use a specific version if locking is preferred
with:
api-key: ${{secrets.FOSSA_API_KEY}}

reno_lint:
runs-on: ubuntu-20.04
needs: gomod
Expand Down Expand Up @@ -88,6 +96,7 @@ jobs:
make install-minio
if: matrix.testSuite == 'test'
- run: make ${{ matrix.testSuite }}

build:
runs-on: ubuntu-20.04
needs: gomod
Expand All @@ -102,11 +111,13 @@ jobs:
- name: restore_gosum
run: echo "${{needs.gomod.outputs.gosum}}" > go.sum
- run: make build BIN=${{ matrix.bin }} GOBORING=true

docs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- run: make docs

release:
runs-on: ubuntu-20.04
needs: [lint, test, build, docs]
Expand All @@ -127,6 +138,7 @@ jobs:
- run: docker builder prune -af
- run: make release-snapshot
- run: COMMIT_SHA=${{ github.sha }} ./build/push_images.sh

image_tags:
runs-on: ubuntu-latest
outputs:
Expand All @@ -139,6 +151,7 @@ jobs:
run: |
echo "tag_short=short-commit-${COMMIT_SHA::12}" >> $GITHUB_OUTPUT
echo "tag_long=commit-${COMMIT_SHA}" >> $GITHUB_OUTPUT
release_example_docker_images:
needs: [release, image_tags]
permissions:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/8699/badge)](https://www.bestpractices.dev/projects/8699)
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/kanisterio/kanister/badge)](https://securityscorecards.dev/viewer/?uri=github.com/kanisterio/kanister)

[![FOSSA Status](https://app.fossa.com/api/projects/custom%2B48957%2Fgithub.com%2Fkanisterio%2Fkanister.svg?type=shield&issueType=license)](https://app.fossa.com/projects/custom%2B48957%2Fgithub.com%2Fkanisterio%2Fkanister?ref=badge_shield&issueType=license)

Kanister is a data protection workflow management tool. It provides a set of
cohesive APIs for defining and curating data operations by abstracting away
tedious details around executing data operations on Kubernetes. It's extensible
Expand Down

0 comments on commit 5975c3c

Please sign in to comment.