In this short post, you will see how to fix one of the errors that you may see when configuring CI/CD based on Github actions for your Java Spring boot application. To be precise, you will learn, how to fix the 403 error in Github actions CI/CD in the Update dependency graph step. The error message you see, will look something like,

HTTP Status 403 for request POST https://<your-api-url>/dependency-graph/snapshots

Fix 403 error in Github actions CI/CD

The solution to this is quite simple. Go to Settings -> Actions -> General -> Workflow permissions -> Select Read and write permissions option. Have a look at the screenshot below to see what you need to do

Notice, how in the above screenshot “Read repository contents and packages permissions” option is selected in the Workflow permissions section and not the Read and write permissions option.

Conclusion

Hope you found this post useful and for more checkout some of the other posts on this blog for all your Java, Spring Boot, Javascript and NodeJS development related concerns.

If you have any questions on this, feel free to leave a comment on this post or send me an email directly.

If you find any of my posts useful and want to support me, you can buy me a coffee 🙂

https://www.buymeacoffee.com/bhumansoni

While you are here, maybe try one of my apps for the iPhone.

Products – My Day To-Do (mydaytodo.com)

Here are some of my other bloposts on Java

How to build a full stack Spring boot API with ReactJS frontend – My Day To-Do (mydaytodo.com)

How to call REST API with WebClient – My Day To-Do (mydaytodo.com)

How to build a jokes client in Java Spring Boot with RestTemplate – My Day To-Do (mydaytodo.com)

Have a read of some of my other posts on AWS

Upload to AWS S3 bucket from Java Spring Boot app – My Day To-Do (mydaytodo.com)

Deploy NodeJS, Typescript app on AWS Elastic beanstalk – (mydaytodo.com)

How to deploy spring boot app to AWS & serve via https – My Day To-Do (mydaytodo.com)

Categories: GithubJava

0 Comments

Leave a Reply

Avatar placeholder
Verified by MonsterInsights