Skip to content

Add link to package security policy #1353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Entity/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class Version
private array|null $includePaths = null;

/**
* @var array{issues?: string, forum?: string, wiki?: string, source?: string, email?: string, irc?: string, docs?: string, rss?: string, chat?: string}|null
* @var array{issues?: string, forum?: string, wiki?: string, source?: string, email?: string, irc?: string, docs?: string, rss?: string, chat?: string, security?: string}|null
*/
#[ORM\Column(type: 'json', nullable: true)]
private array|null $support = null;
Expand Down Expand Up @@ -535,15 +535,15 @@ public function getIncludePaths(): array|null
}

/**
* @param array{issues?: string, forum?: string, wiki?: string, source?: string, email?: string, irc?: string, docs?: string, rss?: string, chat?: string}|null $support
* @param array{issues?: string, forum?: string, wiki?: string, source?: string, email?: string, irc?: string, docs?: string, rss?: string, chat?: string, security?: string}|null $support
*/
public function setSupport(array|null $support): void
{
$this->support = $support;
}

/**
* @return array{issues?: string, forum?: string, wiki?: string, source?: string, email?: string, irc?: string, docs?: string, rss?: string, chat?: string}|null
* @return array{issues?: string, forum?: string, wiki?: string, source?: string, email?: string, irc?: string, docs?: string, rss?: string, chat?: string, security?: string}|null
*/
public function getSupport(): array|null
{
Expand Down
3 changes: 3 additions & 0 deletions templates/package/view_package.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@
{% if version and version.support.docs is defined %}
<p><a rel="nofollow noopener external noindex ugc" href="{{ version.support.docs }}">Documentation</a></p>
{% endif %}
{% if version and version.support.security is defined %}
<p><a rel="nofollow noopener external noindex ugc" href="{{ version.support.security }}">Security Policy</a></p>
{% endif %}
</div>

{% if version and version.funding and version.funding|length > 0 %}
Expand Down