Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Aj7Ay authored Jan 10, 2024
1 parent 3005d3f commit c508840
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
name: Build,Analyze,scan
name: Build, Analyze, and Scan
on:
push:
branches:
- main
jobs:
build-analyze-scan:
name: Build
name: Build, Analyze, and Scan
runs-on: [self-hosted]
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Build and analyze with SonarQube
uses: sonarsource/sonarqube-scan-action@master
env:
Expand All @@ -21,4 +22,11 @@ jobs:
- name: NPM Install
run: npm install # Add your specific npm install command

- name: Docker Login
run: docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }}

- name: Docker Scout Scan
run: docker scout quickview fs://.



0 comments on commit c508840

Please sign in to comment.