Automate Java Code Analysis with SonarCloud & GitHub Actions

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 มี.ค. 2024
  • Struggling with bugs and lengthy code reviews? Automate Java code analysis with SonarCloud & GitHub Actions! This video shows you step-by-step how to set up & run scans to find issues early, improve code quality & security, and streamline code reviews.
    #devops #java #sonarqube #githubactions

ความคิดเห็น • 14

  • @darshankhatri9625
    @darshankhatri9625 4 หลายเดือนก่อน +1

    Informative 👍

  • @aamirimran9373
    @aamirimran9373 4 หลายเดือนก่อน +1

    Niceee

  • @lost_and_finding
    @lost_and_finding 4 หลายเดือนก่อน +1

    in your node js deploy video whete you use GitHub actions and deploy it in ec2. How do i access the environment variables like my postgressSql creds and aws s3 credentials. In my local machine i am using env file to store it.

    • @IntegrationNinjas
      @IntegrationNinjas  4 หลายเดือนก่อน

      You can store environment variable details in GitHub secrets and then you can access those variables in your workflow.
      While building docker image you need to pass build arguments and set them in docker file.
      Ex: docker build -t your-image-name --build-arg AP|_KEY=${ secrets.AP|_KEY }.
      While in docker file you can set these as:
      # Dockerfile
      FROM node:14
      # Set environment variable
      ARG APIKEY
      ENV AP|_KEY=$API_KEY
      # Other Dockerfile instructions

  • @rahulray736
    @rahulray736 4 หลายเดือนก่อน +1

    Nice video

  • @lost_and_finding
    @lost_and_finding 4 หลายเดือนก่อน +1

    bhai mera app deploy ho gaya hai lekin public ip ssi acces nahi kar pa raha unable to connect araha hai security groups mai port 3000 bhi add kiya phir bhi

    • @IntegrationNinjas
      @IntegrationNinjas  4 หลายเดือนก่อน

      Ensure that your EC2 instance is running and has passed its status checks. If the instance is stopped or terminated, you won't be able to access it.
      Verify that the security group associated with your EC2 instance allows inbound traffic on port 3000 from your IP address or from all IP addresses (0.0.0.0/0) if it's a public-facing service. Sometimes changes to security group rules may take a few moments to propagate.

    • @lost_and_finding
      @lost_and_finding 4 หลายเดือนก่อน +1

      @@IntegrationNinjasthanks it's working now on port 443

  • @kunalacharya5291
    @kunalacharya5291 4 หลายเดือนก่อน +1

    Sonar cube can't prevent bugs percolate due to logic. Isn't it?

    • @IntegrationNinjas
      @IntegrationNinjas  2 หลายเดือนก่อน

      You're right, SonarCloud (and static code analysis tools in general) can't entirely prevent bugs due to logic errors. They primarily focus on identifying code smells, potential vulnerabilities, and enforcing coding standards.