<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hansica Venkatayogi</title>
    <description>The latest articles on DEV Community by Hansica Venkatayogi (@hansica_venkatayogi_090cc).</description>
    <link>https://dev.to/hansica_venkatayogi_090cc</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4151266%2F0cf60b1d-6efa-42d1-b989-03ab1342c23b.png</url>
      <title>DEV Community: Hansica Venkatayogi</title>
      <link>https://dev.to/hansica_venkatayogi_090cc</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hansica_venkatayogi_090cc"/>
    <language>en</language>
    <item>
      <title>Secure Push</title>
      <dc:creator>Hansica Venkatayogi</dc:creator>
      <pubDate>Wed, 30 Sep 2026 03:35:43 +0000</pubDate>
      <link>https://dev.to/hansica_venkatayogi_090cc/secure-push-41i6</link>
      <guid>https://dev.to/hansica_venkatayogi_090cc/secure-push-41i6</guid>
      <description>&lt;h1&gt;
  
  
  What if &lt;code&gt;git push&lt;/code&gt; wasn't the last step?
&lt;/h1&gt;

&lt;p&gt;For most developers, the flow is pretty simple.&lt;/p&gt;

&lt;p&gt;Write code.&lt;/p&gt;

&lt;p&gt;Test it.&lt;/p&gt;

&lt;p&gt;Run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git push
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And the code is on its way.&lt;/p&gt;

&lt;p&gt;But what if the code had a security check before it was allowed to leave your machine?&lt;/p&gt;

&lt;p&gt;That was the idea behind &lt;strong&gt;SecurePush&lt;/strong&gt;, the project we built for HackWith Hyderabad 3.0.&lt;/p&gt;

&lt;h2&gt;
  
  
  Making security part of the Git workflow
&lt;/h2&gt;

&lt;p&gt;We didn't want developers to open another tool every time they wanted to check their code.&lt;/p&gt;

&lt;p&gt;We wanted the security check to happen where developers already work.&lt;/p&gt;

&lt;p&gt;So SecurePush works around the normal Git push workflow.&lt;/p&gt;

&lt;p&gt;You make your changes and run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git push
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;SecurePush checks the changed code before allowing the push to continue.&lt;/p&gt;

&lt;p&gt;If it finds a security issue, it explains what it found and suggests a possible fix.&lt;/p&gt;

&lt;p&gt;The developer is still in control.&lt;/p&gt;

&lt;p&gt;They can accept the fix or reject it.&lt;/p&gt;

&lt;p&gt;If the fix is accepted, SecurePush applies it and runs verification.&lt;/p&gt;

&lt;p&gt;If everything passes, the push continues.&lt;/p&gt;

&lt;p&gt;If the problem isn't resolved, the push can be blocked.&lt;/p&gt;

&lt;p&gt;That gives us a simple flow:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code → Scan → Fix → Verify → Push&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;But we didn't stop there.&lt;/p&gt;

&lt;h2&gt;
  
  
  Giving the security check a memory
&lt;/h2&gt;

&lt;p&gt;One thing felt missing from a normal security review.&lt;/p&gt;

&lt;p&gt;History.&lt;/p&gt;

&lt;p&gt;Suppose SecurePush finds a hardcoded credential today.&lt;/p&gt;

&lt;p&gt;The developer accepts the suggested fix.&lt;/p&gt;

&lt;p&gt;The fix works.&lt;/p&gt;

&lt;p&gt;The tests pass.&lt;/p&gt;

&lt;p&gt;The push goes through.&lt;/p&gt;

&lt;p&gt;What happens tomorrow?&lt;/p&gt;

&lt;p&gt;Without memory, the next review has very little context about that previous interaction.&lt;/p&gt;

&lt;p&gt;So we added &lt;strong&gt;Hindsight&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Hindsight allows SecurePush to retain useful information from previous security reviews and recall it later.&lt;/p&gt;

&lt;p&gt;It remembers things such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the security issue that was found&lt;/li&gt;
&lt;li&gt;the file involved&lt;/li&gt;
&lt;li&gt;the severity&lt;/li&gt;
&lt;li&gt;the suggested remediation&lt;/li&gt;
&lt;li&gt;whether the developer accepted or rejected it&lt;/li&gt;
&lt;li&gt;whether verification passed or failed&lt;/li&gt;
&lt;li&gt;whether the push was allowed or blocked&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The important thing is that we are not storing the actual secret if the issue involves a credential.&lt;/p&gt;

&lt;p&gt;We want the security context, not the sensitive value.&lt;/p&gt;

&lt;h2&gt;
  
  
  A simple example
&lt;/h2&gt;

&lt;p&gt;Imagine the first review finds:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Hardcoded credential in &lt;code&gt;src/config.ts&lt;/code&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;SecurePush suggests moving it to an environment variable.&lt;/p&gt;

&lt;p&gt;The developer accepts it.&lt;/p&gt;

&lt;p&gt;The fix is applied.&lt;/p&gt;

&lt;p&gt;Verification passes.&lt;/p&gt;

&lt;p&gt;That outcome is retained in Hindsight.&lt;/p&gt;

&lt;p&gt;Later, another change touches the same area.&lt;/p&gt;

&lt;p&gt;Before reviewing the new change, SecurePush can recall relevant information from the previous review.&lt;/p&gt;

&lt;p&gt;Now the security agent has some context about what happened before.&lt;/p&gt;

&lt;p&gt;But it still checks the current code.&lt;/p&gt;

&lt;p&gt;That's important.&lt;/p&gt;

&lt;p&gt;Memory is there to provide context, not to blindly decide that the current code is safe or unsafe.&lt;/p&gt;

&lt;h2&gt;
  
  
  We wanted developers to see that memory
&lt;/h2&gt;

&lt;p&gt;Another thing we cared about was making the memory visible.&lt;/p&gt;

&lt;p&gt;It would be easy to connect Hindsight in the backend and simply say:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Our project has memory."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;But that doesn't really show anything.&lt;/p&gt;

&lt;p&gt;So we added a Memory section where developers can see the security information that has been retained for the repository.&lt;/p&gt;

&lt;p&gt;This makes the flow much easier to understand.&lt;/p&gt;

&lt;p&gt;You can see what happened during previous reviews and what SecurePush can use during future ones.&lt;/p&gt;

&lt;h2&gt;
  
  
  The full SecurePush flow
&lt;/h2&gt;

&lt;p&gt;After putting everything together, the workflow looks like this:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Make a code change&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;↓&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Run &lt;code&gt;git push&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;↓&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. SecurePush scans the changed code&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;↓&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Previous security memory is recalled&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;↓&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Security issue is identified&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;↓&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. A fix is suggested&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;↓&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7. Developer accepts or rejects it&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;↓&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;8. SecurePush verifies the result&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;↓&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;9. Push is allowed or blocked&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;↓&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;10. The outcome is remembered&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The next review can then use that history.&lt;/p&gt;

&lt;p&gt;So the process doesn't really end when the push is complete.&lt;/p&gt;

&lt;p&gt;The result becomes part of the repository's security memory.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part we enjoyed building
&lt;/h2&gt;

&lt;p&gt;The Git integration was obviously an important part of the project.&lt;/p&gt;

&lt;p&gt;But the part that stood out to us was the combination of &lt;strong&gt;security + memory&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;A security tool normally answers a question about the code in front of it.&lt;/p&gt;

&lt;p&gt;SecurePush can also bring some context from previous reviews into that process.&lt;/p&gt;

&lt;p&gt;That changes the way we think about an AI security tool.&lt;/p&gt;

&lt;p&gt;It doesn't need to remember everything.&lt;/p&gt;

&lt;p&gt;It just needs to remember the information that can actually help with the next review.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we took away
&lt;/h2&gt;

&lt;p&gt;Building SecurePush made us think about something beyond this particular project.&lt;/p&gt;

&lt;p&gt;AI tools are becoming good at generating answers.&lt;/p&gt;

&lt;p&gt;But sometimes the more useful question is:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What should the system remember after giving that answer?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For SecurePush, the answer was security findings, developer decisions, fixes, and verification outcomes.&lt;/p&gt;

&lt;p&gt;That information can become useful the next time the repository is reviewed.&lt;/p&gt;

&lt;p&gt;And that's what we wanted to build.&lt;/p&gt;

&lt;p&gt;A security gate that sits in the Git workflow, checks your code before it gets pushed, and remembers what happened along the way.&lt;/p&gt;

&lt;p&gt;**SecurePush doesn't just check the next push.&lt;/p&gt;

&lt;p&gt;It carries some of the previous ones with it.**&lt;/p&gt;

</description>
      <category>git</category>
      <category>security</category>
      <category>softwaredevelopment</category>
      <category>tools</category>
    </item>
  </channel>
</rss>
