<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Examples on</title><link>https://www.chainguard.dev/docs/tags/examples</link><description>Recent content in Examples on</description><generator>Hugo -- gohugo.io</generator><language>en-US</language><copyright>Copyright (c) 2023 Chainguard</copyright><lastBuildDate>Thu, 12 Nov 2026 14:46:46 +0000</lastBuildDate><atom:link href="https://www.chainguard.dev/docs/tags/examples/index.xml" rel="self" type="application/rss+xml"/><item><title>Chainguard Checks examples</title><link>https://www.chainguard.dev/docs/chainguard/checks/examples</link><pubDate>Thu, 12 Nov 2026 14:46:46 +0000</pubDate><guid>https://www.chainguard.dev/docs/chainguard/checks/examples</guid><description>&lt;p&gt;This page gives complete Chainguard Checks configurations for common kinds of projects. Copy the one closest to your project, then change its packages, commands, and network access to match. Each example passes &lt;code&gt;chainctl checks validate&lt;/code&gt;. For what each key does, refer to the &lt;a href="https://www.chainguard.dev/docs/chainguard/checks/configuration"&gt;Chainguard Checks configuration reference&lt;/a&gt;, and for services and caches, refer to &lt;a href="https://www.chainguard.dev/docs/chainguard/checks/variations-services-caches"&gt;Variations, inputs, services, and caches&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Keep the following in mind when you adapt an example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A check reaches only the hosts in its &lt;code&gt;network.egress&lt;/code&gt; list. If your build downloads from somewhere else, such as a private package registry, add that host. Refer to &lt;a href="https://www.chainguard.dev/docs/chainguard/checks/migrate-from-github-actions#find-the-hosts-a-check-needs"&gt;Find the hosts a check needs&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;A cache does nothing until your default branch&amp;rsquo;s &lt;code&gt;.chainguard/ci/identities.yaml&lt;/code&gt; file defines cache pools, as described in &lt;a href="https://www.chainguard.dev/docs/chainguard/checks/variations-services-caches#set-up-cache-pools"&gt;Set up cache pools&lt;/a&gt;. The examples that use caches also run after merging, with &lt;code&gt;trigger: [presubmit, postsubmit]&lt;/code&gt;, so that runs on your default branch fill the cache that pull requests start from.&lt;/li&gt;
&lt;li&gt;Chainguard Workspaces sessions can use these files for their packages, but they don&amp;rsquo;t start services or mount caches other than &lt;code&gt;gobuild&lt;/code&gt;. Refer to &lt;a href="https://www.chainguard.dev/docs/chainguard/workspaces/session-environment"&gt;Configure a Chainguard Workspaces session&amp;rsquo;s environment&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="java-with-maven" class="heading-2" data-heading-level="2"&gt;
&lt;span class="heading-text"&gt;Java with Maven&lt;/span&gt;
&lt;a href="#java-with-maven" class="anchor" aria-label="Link to Java with Maven" title="Link to this section"&gt;
&lt;svg width="16" height="9" viewBox="0 0 16 9" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"&gt;
&lt;path d="M6.833 8.125H4C3 8.125 2.146 7.77067 1.438 7.062C0.729333 6.354 0.375 5.5 0.375 4.5C0.375 3.5 0.729333 2.646 1.438 1.938C2.146 1.22933 3 0.875 4 0.875H6.833V1.958H4C3.30533 1.958 2.708 2.208 2.208 2.708C1.708 3.208 1.458 3.80533 1.458 4.5C1.458 5.19467 1.708 5.792 2.208 6.292C2.708 6.792 3.30533 7.042 4 7.042H6.833V8.125ZM5.208 5.042V3.958H10.792V5.042H5.208ZM9.167 8.125V7.042H12C12.6947 7.042 13.292 6.792 13.792 6.292C14.292 5.792 14.542 5.19467 14.542 4.5C14.542 3.80533 14.292 3.208 13.792 2.708C13.292 2.208 12.6947 1.958 12 1.958H9.167V0.875H12C13 0.875 13.854 1.22933 14.562 1.938C15.2707 2.646 15.625 3.5 15.625 4.5C15.625 5.5 15.2707 6.354 14.562 7.062C13.854 7.77067 13 8.125 12 8.125H9.167Z" fill="currentColor"/&gt;
&lt;/svg&gt;
&lt;/a&gt;
&lt;/h2&gt;&lt;p&gt;This file installs a JDK and Maven, and runs the build&amp;rsquo;s tests with &lt;code&gt;mvn verify&lt;/code&gt;:&lt;/p&gt;</description></item></channel></rss>