Skip to content
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

[Positive review] improve doctest coverage for Factorization; fix several critical bugs #1805

Closed
williamstein opened this issue Jan 17, 2008 · 18 comments

Comments

@williamstein
Copy link
Contributor

Component: doctest coverage

Issue created by migration from https://trac.sagemath.org/ticket/1805

@williamstein williamstein added this to the sage-2.10.3 milestone Jan 17, 2008
@williamstein
Copy link
Contributor Author

comment:1

Before:

sage@modular:~/d/sage/sage/structure$ sage -coverage factorization.py 
----------------------------------------------------------------------
factorization.py
SCORE factorization.py: 28% (6 of 21)

Missing documentation:
	 * __init__(self, x, unit=None, cr=False, sort=True)
	 * _set_cr(self, cr)
	 * sort(self)
	 * _cmp(f,g)
	 * _cmp(f,g)
	 * _cmp(f,g)
	 * __reduce__(self)
	 * _cr(self)
	 * _repr_(self)
	 * _latex_(self)
	 * __pow__(self, n)
	 * __invert__(self)
	 * Factorization_deduce_unit(x, mul)


Missing doctests:
	 * unit_part(self)
	 * expand(self)

After:

teragon:structure was$ sage -coverage factorization.py
----------------------------------------------------------------------
factorization.py
SCORE factorization.py: 100% (22 of 22)
----------------------------------------------------------------------

and I fixed numerous conceptual bugs/mistakes in that file.

@williamstein williamstein self-assigned this Jan 17, 2008
@williamstein
Copy link
Contributor Author

comment:2

Attachment: trac-1805.patch.gz

This is a preliminary patch. I'm now doctesting all of sage-2.10 with this patch applied to see what else is broke. I'll post another patch that fixes the problems later.

@williamstein
Copy link
Contributor Author

Attachment: trac-1805-part2.patch.gz

this part 2 fixes some additional issues, typos, etc., I saw when proofreading my patch.

@ncalexan
Copy link
Mannequin

ncalexan mannequin commented Jan 20, 2008

comment:4

I fixed 1804 not knowing that 1805 did a lot of the same work. Damn! They should both be applied but of course they need to be merged. I'll try to do it tomorrow.

@ncalexan ncalexan mannequin removed the s: needs review label Jan 20, 2008
@ncalexan ncalexan mannequin assigned ncalexan and unassigned williamstein Jan 20, 2008
@ncalexan ncalexan mannequin changed the title improve doctest coverage for structure/factorization.py [with patch; needs to be merged with 1804] improve doctest coverage for structure/factorization.py Jan 20, 2008
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Feb 18, 2008

comment:5

Nick, can you give this another review?

Cheers,

Michael

@williamstein
Copy link
Contributor Author

comment:6

Yes, please review it. My patch fixes a number of subtle serious bugs involving pickling factorizations, which could cause people problems.

@garyfurnish
Copy link
Mannequin

garyfurnish mannequin commented Mar 1, 2008

comment:7

These patches don't import cleanly against current. They also need the bug doctest removed.

@williamstein
Copy link
Contributor Author

comment:8

I've attached a brand new rebased patch which also fixes a critical bug in factorization (!) which may expose a bug in totallyrealfield, by the way.

I also changed factorizations to be immutable, as suggested by the referee, and they now no longer derive from list, so that __cmp__ works correctly.

@williamstein williamstein changed the title [with patch; needs to be merged with 1804] improve doctest coverage for structure/factorization.py improve doctest coverage for Factorization; fix several critical bugs Mar 2, 2008
@williamstein
Copy link
Contributor Author

new rebased version

@williamstein
Copy link
Contributor Author

@williamstein
Copy link
Contributor Author

Attachment: sage-1805-rebase_part3.patch.gz

@garyfurnish
Copy link
Mannequin

garyfurnish mannequin commented Mar 2, 2008

comment:9

sage -t devel/sage-patch1805/build/sage/structure/factorization.py**********************************************************************
File "factorization.py", line 602:
sage: F = factor(-2x^2 - 1); F
Expected:
(-2.0) * (1.0
x^2 + 0.5) * (1.0x^2 + 1.11022302463e-16x + 0.5)
Got:
(-2.0) * (1.0x^2 - 2.22044604925e-16x + 0.5) * (1.0*x^2 + 0.5)


Positive review pending fix.

@garyfurnish garyfurnish mannequin changed the title improve doctest coverage for Factorization; fix several critical bugs [Positive review pending change] improve doctest coverage for Factorization; fix several critical bugs Mar 2, 2008
@garyfurnish
Copy link
Mannequin

garyfurnish mannequin commented Mar 2, 2008

comment:10

{{{sage -t devel/sage-patch1805/build/sage/structure/factorization.py


File "factorization.py", line 602:
sage: F = factor(-2x^2 - 1); F
Expected:
(-2.0) * (1.0
x^2 + 0.5) * (1.0x^2 + 1.11022302463e-16x + 0.5)
Got:
(-2.0) * (1.0x^2 - 2.22044604925e-16x + 0.5) * (1.0*x^2 + 0.5)


}}}

@garyfurnish
Copy link
Mannequin

garyfurnish mannequin commented Mar 2, 2008

comment:11

[[[
sage -t devel/sage-patch1805/build/sage/structure/factorization.py


File "factorization.py", line 602:
sage: F = factor(-2x^2 - 1); F
Expected:
(-2.0) * (1.0
x^2 + 0.5) * (1.0x^2 + 1.11022302463e-16x + 0.5)
Got:
(-2.0) * (1.0x^2 - 2.22044604925e-16x + 0.5) * (1.0*x^2 + 0.5)


]]]

@garyfurnish
Copy link
Mannequin

garyfurnish mannequin commented Mar 2, 2008

comment:12
sage -t  devel/sage-patch1805/build/sage/structure/factorization.py**********************************************************************
File "factorization.py", line 602:
    sage: F = factor(-2*x^2 - 1); F
Expected:
    (-2.0) * (1.0*x^2 + 0.5) * (1.0*x^2 + 1.11022302463e-16*x + 0.5)
Got:
    (-2.0) * (1.0*x^2 - 2.22044604925e-16*x + 0.5) * (1.0*x^2 + 0.5)
**********************************************************************

@williamstein
Copy link
Contributor Author

this should be the final of four patches; it fixes one problem found by the referee (gfurnish)

@williamstein
Copy link
Contributor Author

comment:13

Attachment: sage-1805-part4-make_ref_happy.patch.gz

I attached the one small change requested.

@williamstein williamstein changed the title [Positive review pending change] improve doctest coverage for Factorization; fix several critical bugs [Positive review] improve doctest coverage for Factorization; fix several critical bugs Mar 2, 2008
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Mar 2, 2008

comment:14

Merged in Sage 2.10.3.rc1

@sagetrac-mabshoff sagetrac-mabshoff mannequin removed the s: needs review label Mar 2, 2008
@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Mar 2, 2008
vbraun pushed a commit to vbraun/sage that referenced this issue Jan 16, 2024
….github/workflows

    
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-
files) from 38 to 41.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/tj-actions/changed-
files/releases">tj-actions/changed-files's releases</a>.</em></p>
<blockquote>
<h2>v41</h2>
<h1>Changes in v41.0.1</h1>
<h2>What's Changed</h2>
<ul>
<li>Upgraded to v41 by <a href="https://github.com/tj-actions-
bot"><code>@​tj-actions-bot</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1811">tj-actions/changed-files#1811</a></li>
<li>chore(deps): update dependency eslint-plugin-prettier to v5.1.2 by
<a href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1813">tj-actions/changed-files#1813</a></li>
<li>fix: update characters escaped by safe output by <a
href="https://github.com/jackton1"><code>@​jackton1</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1815">tj-actions/changed-files#1815</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/tj-
actions/changed-files/compare/v41...v41.0.1">https://github.com/tj-
actions/changed-files/compare/v41...v41.0.1</a></p>
<hr />
<h1>Changes in v41.0.0</h1>
<h2>🔥 🔥 BREAKING CHANGE 🔥 🔥</h2>
<p>A new <code>safe_output</code> input is now available to prevent
outputting unsafe filename characters (Enabled by default). This would
escape characters in the filename that could be used for command
injection.</p>
<blockquote>
<p>[!NOTE]
This can be disabled by setting the <code>safe_output</code> to false
this comes with a recommendation to store all outputs generated in an
environment variable first before using them.</p>
</blockquote>
<h4>Example</h4>
<pre lang="yaml"><code>...
    - name: Get changed files
      id: changed-files
      uses: tj-actions/changed-files@v40
      with:
        safe_output: false # set to false because we are using an
environment variable to store the output and avoid command injection.
<pre><code>- name: List all added files
  env:
    ADDED_FILES: ${{ steps.changed-files.outputs.added_files }}
  run: |
    for file in &amp;quot;$ADDED_FILES&amp;quot;; do
      echo &amp;quot;$file was added&amp;quot;
    done
</code></pre>
<p>...
</code></pre></p>
<h2>What's Changed</h2>
<ul>
<li>chore(deps): update typescript-eslint monorepo to v6.15.0 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1801">tj-actions/changed-files#1801</a></li>
<li>Upgraded to v40.2.3 by <a href="https://github.com/tj-actions-
bot"><code>@​tj-actions-bot</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1800">tj-actions/changed-files#1800</a></li>
<li>chore(deps): update dependency eslint-plugin-prettier to v5.1.0 by
<a href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1802">tj-actions/changed-files#1802</a></li>
<li>chore(deps): lock file maintenance by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1803">tj-actions/changed-files#1803</a></li>
<li>chore(deps): update dependency eslint-plugin-prettier to v5.1.1 by
<a href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1804">tj-actions/changed-files#1804</a></li>
<li>fix: update safe output regex and the docs by <a
href="https://github.com/tj-actions-bot"><code>@​tj-actions-
bot</code></a> in <a href="https://redirect.github.com/tj-
actions/changed-files/pull/1805">tj-actions/changed-files#1805</a></li>
<li>Revert &quot;chore(deps): update actions/download-artifact action to
v4&quot; by <a
href="https://github.com/jackton1"><code>@​jackton1</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1806">tj-actions/changed-files#1806</a></li>
<li>Update README.md by <a
href="https://github.com/jackton1"><code>@​jackton1</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1808">tj-actions/changed-files#1808</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/tj-actions/changed-
files/blob/main/HISTORY.md">tj-actions/changed-files's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h1><a href="https://github.com/tj-actions/changed-
files/compare/v41.0.0...v41.0.1">41.0.1</a> - (2023-12-24)</h1>
<h2><!-- raw HTML omitted -->🐛 Bug Fixes</h2>
<ul>
<li>Update characters escaped by safe output (<a
href="https://redirect.github.com/tj-actions/changed-
files/issues/1815">sagemath#1815</a>) (<a href="https://github.com/tj-
actions/changed-
files/commit/716b1e13042866565e00e85fd4ec490e186c4a2f">716b1e1</a>)  -
(Tonye Jack)</li>
</ul>
<h2><!-- raw HTML omitted -->⚙️ Miscellaneous Tasks</h2>
<ul>
<li><strong>deps:</strong> Update dependency eslint-plugin-prettier to
v5.1.2 (<a href="https://github.com/tj-actions/changed-
files/commit/7aaf10d9eef19e8a2432a967b88124171152caaf">7aaf10d</a>)  -
(renovate[bot])</li>
</ul>
<h2><!-- raw HTML omitted -->⬆️ Upgrades</h2>
<ul>
<li>Upgraded to v41 (<a href="https://redirect.github.com/tj-
actions/changed-files/issues/1811">sagemath#1811</a>)</li>
</ul>
<p>Co-authored-by: jackton1 <a href="mailto:jackton1@users.noreply.githu
b.com">jackton1@users.noreply.github.com</a> (<a
href="https://github.com/tj-actions/changed-
files/commit/cc08e170f4447237bcaf8acaacfa615b9cb86612">cc08e17</a>)  -
(tj-actions[bot])</p>
<h1><a href="https://github.com/tj-actions/changed-
files/compare/v40.2.3...v41.0.0">41.0.0</a> - (2023-12-23)</h1>
<h2><!-- raw HTML omitted -->🐛 Bug Fixes</h2>
<ul>
<li>Update safe output regex and the docs (<a
href="https://redirect.github.com/tj-actions/changed-
files/issues/1805">sagemath#1805</a>) (<a href="https://github.com/tj-
actions/changed-
files/commit/ff2f6e6b91913a7be42be1b5917330fe442f2ede">ff2f6e6</a>)  -
(tj-actions[bot])</li>
</ul>
<h2><!-- raw HTML omitted -->⏪ Reverts</h2>
<ul>
<li>Revert &quot;chore(deps): update actions/download-artifact action to
v4&quot; (<a href="https://redirect.github.com/tj-actions/changed-
files/issues/1806">sagemath#1806</a>)</li>
</ul>
<p>(<a href="https://github.com/tj-actions/changed-
files/commit/4f573fed06c9abb5da4c72f75c1c320718114ff7">4f573fe</a>)  -
(Tonye Jack)</p>
<h2><!-- raw HTML omitted -->🔄 Update</h2>
<ul>
<li>Update README.md (<a href="https://github.com/tj-actions/changed-
files/commit/6e79d6e3dbe48946636c2939c80ff5c84ff7f9fe">6e79d6e</a>)  -
(Tonye Jack)</li>
<li>Update README.md (<a href="https://github.com/tj-actions/changed-
files/commit/d13ac1942fb3c1d7d32017915bb082cebe8a272a">d13ac19</a>)  -
(Tonye Jack)</li>
<li>Update README.md (<a href="https://github.com/tj-actions/changed-
files/commit/bb89f97963be96b39e1a303e64d5b91a1af4c340">bb89f97</a>)  -
(Tonye Jack)</li>
<li>Updated README.md (<a href="https://redirect.github.com/tj-
actions/changed-files/issues/1810">sagemath#1810</a>)</li>
</ul>
<p>Co-authored-by: renovate[bot] <!-- raw HTML omitted --> (<a
href="https://github.com/tj-actions/changed-
files/commit/1864078d0afadf68ba489e671ecc09fefe8b70ab">1864078</a>)  -
(tj-actions[bot])</p>
<ul>
<li>Update README.md (<a href="https://redirect.github.com/tj-
actions/changed-files/issues/1808">sagemath#1808</a>)</li>
</ul>
<p>(<a href="https://github.com/tj-actions/changed-
files/commit/47371c50e97c089212d9eb92ca26c8453224e78e">47371c5</a>)  -
(Tonye Jack)</p>
<h2><!-- raw HTML omitted -->📝 Other</h2>
<ul>
<li>Merge pull request from GHSA-mcph-m25j-8j63</li>
</ul>
<ul>
<li>
<p>feat: add <code>safe_output</code> input enabled by default</p>
</li>
<li>
<p>fix: migrate README to safe uses of interpolation</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="tj-actions/changed-files@716b1e13
042866565e00e85fd4ec490e186c4a2f"><code>716b1e1</code></a> fix: update
characters escaped by safe output (<a
href="https://redirect.github.com/tj-actions/changed-
files/issues/1815">sagemath#1815</a>)</li>
<li><a href="tj-actions/changed-files@7aaf10d9
eef19e8a2432a967b88124171152caaf"><code>7aaf10d</code></a> chore(deps):
update dependency eslint-plugin-prettier to v5.1.2</li>
<li><a href="tj-actions/changed-files@cc08e170
f4447237bcaf8acaacfa615b9cb86612"><code>cc08e17</code></a> Upgraded to
v41 (<a href="https://redirect.github.com/tj-actions/changed-
files/issues/1811">sagemath#1811</a>)</li>
<li><a href="tj-actions/changed-files@6e79d6e3
dbe48946636c2939c80ff5c84ff7f9fe"><code>6e79d6e</code></a> Update
README.md</li>
<li><a href="tj-actions/changed-files@d13ac194
2fb3c1d7d32017915bb082cebe8a272a"><code>d13ac19</code></a> Update
README.md</li>
<li><a href="tj-actions/changed-files@bb89f979
63be96b39e1a303e64d5b91a1af4c340"><code>bb89f97</code></a> Update
README.md</li>
<li><a href="tj-actions/changed-files@1864078d
0afadf68ba489e671ecc09fefe8b70ab"><code>1864078</code></a> Updated
README.md (<a href="https://redirect.github.com/tj-actions/changed-
files/issues/1810">sagemath#1810</a>)</li>
<li><a href="tj-actions/changed-files@f495a032
1d3fffa62da2573adf70b77d5eb2f57a"><code>f495a03</code></a> chore(deps):
lock file maintenance</li>
<li><a href="tj-actions/changed-files@47371c50
e97c089212d9eb92ca26c8453224e78e"><code>47371c5</code></a> Update
README.md (<a href="https://redirect.github.com/tj-actions/changed-
files/issues/1808">sagemath#1808</a>)</li>
<li><a href="tj-actions/changed-files@4f573fed
06c9abb5da4c72f75c1c320718114ff7"><code>4f573fe</code></a> Revert
&quot;chore(deps): update actions/download-artifact action to v4&quot;
(<a href="https://redirect.github.com/tj-actions/changed-
files/issues/1806">sagemath#1806</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/tj-
actions/changed-files/compare/v38...v41">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-
badges.githubapp.com/badges/compatibility_score?dependency-name=tj-
actions/changed-files&package-manager=github_actions&previous-
version=38&new-version=41)](https://docs.github.com/en/github/managing-
security-vulnerabilities/about-dependabot-security-updates#about-
compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts page](https://github.com/sagemath/sage/network/alerts).

</details>
    
URL: sagemath#37048
Reported by: dependabot[bot]
Reviewer(s): Frédéric Chapoton
vbraun pushed a commit to vbraun/sage that referenced this issue Jan 16, 2024
….github/workflows

    
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-
files) from 38 to 41.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/tj-actions/changed-
files/releases">tj-actions/changed-files's releases</a>.</em></p>
<blockquote>
<h2>v41</h2>
<h1>Changes in v41.0.1</h1>
<h2>What's Changed</h2>
<ul>
<li>Upgraded to v41 by <a href="https://github.com/tj-actions-
bot"><code>@​tj-actions-bot</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1811">tj-actions/changed-files#1811</a></li>
<li>chore(deps): update dependency eslint-plugin-prettier to v5.1.2 by
<a href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1813">tj-actions/changed-files#1813</a></li>
<li>fix: update characters escaped by safe output by <a
href="https://github.com/jackton1"><code>@​jackton1</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1815">tj-actions/changed-files#1815</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/tj-
actions/changed-files/compare/v41...v41.0.1">https://github.com/tj-
actions/changed-files/compare/v41...v41.0.1</a></p>
<hr />
<h1>Changes in v41.0.0</h1>
<h2>🔥 🔥 BREAKING CHANGE 🔥 🔥</h2>
<p>A new <code>safe_output</code> input is now available to prevent
outputting unsafe filename characters (Enabled by default). This would
escape characters in the filename that could be used for command
injection.</p>
<blockquote>
<p>[!NOTE]
This can be disabled by setting the <code>safe_output</code> to false
this comes with a recommendation to store all outputs generated in an
environment variable first before using them.</p>
</blockquote>
<h4>Example</h4>
<pre lang="yaml"><code>...
    - name: Get changed files
      id: changed-files
      uses: tj-actions/changed-files@v40
      with:
        safe_output: false # set to false because we are using an
environment variable to store the output and avoid command injection.
<pre><code>- name: List all added files
  env:
    ADDED_FILES: ${{ steps.changed-files.outputs.added_files }}
  run: |
    for file in &amp;quot;$ADDED_FILES&amp;quot;; do
      echo &amp;quot;$file was added&amp;quot;
    done
</code></pre>
<p>...
</code></pre></p>
<h2>What's Changed</h2>
<ul>
<li>chore(deps): update typescript-eslint monorepo to v6.15.0 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1801">tj-actions/changed-files#1801</a></li>
<li>Upgraded to v40.2.3 by <a href="https://github.com/tj-actions-
bot"><code>@​tj-actions-bot</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1800">tj-actions/changed-files#1800</a></li>
<li>chore(deps): update dependency eslint-plugin-prettier to v5.1.0 by
<a href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1802">tj-actions/changed-files#1802</a></li>
<li>chore(deps): lock file maintenance by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1803">tj-actions/changed-files#1803</a></li>
<li>chore(deps): update dependency eslint-plugin-prettier to v5.1.1 by
<a href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1804">tj-actions/changed-files#1804</a></li>
<li>fix: update safe output regex and the docs by <a
href="https://github.com/tj-actions-bot"><code>@​tj-actions-
bot</code></a> in <a href="https://redirect.github.com/tj-
actions/changed-files/pull/1805">tj-actions/changed-files#1805</a></li>
<li>Revert &quot;chore(deps): update actions/download-artifact action to
v4&quot; by <a
href="https://github.com/jackton1"><code>@​jackton1</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1806">tj-actions/changed-files#1806</a></li>
<li>Update README.md by <a
href="https://github.com/jackton1"><code>@​jackton1</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1808">tj-actions/changed-files#1808</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/tj-actions/changed-
files/blob/main/HISTORY.md">tj-actions/changed-files's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h1><a href="https://github.com/tj-actions/changed-
files/compare/v41.0.0...v41.0.1">41.0.1</a> - (2023-12-24)</h1>
<h2><!-- raw HTML omitted -->🐛 Bug Fixes</h2>
<ul>
<li>Update characters escaped by safe output (<a
href="https://redirect.github.com/tj-actions/changed-
files/issues/1815">sagemath#1815</a>) (<a href="https://github.com/tj-
actions/changed-
files/commit/716b1e13042866565e00e85fd4ec490e186c4a2f">716b1e1</a>)  -
(Tonye Jack)</li>
</ul>
<h2><!-- raw HTML omitted -->⚙️ Miscellaneous Tasks</h2>
<ul>
<li><strong>deps:</strong> Update dependency eslint-plugin-prettier to
v5.1.2 (<a href="https://github.com/tj-actions/changed-
files/commit/7aaf10d9eef19e8a2432a967b88124171152caaf">7aaf10d</a>)  -
(renovate[bot])</li>
</ul>
<h2><!-- raw HTML omitted -->⬆️ Upgrades</h2>
<ul>
<li>Upgraded to v41 (<a href="https://redirect.github.com/tj-
actions/changed-files/issues/1811">sagemath#1811</a>)</li>
</ul>
<p>Co-authored-by: jackton1 <a href="mailto:jackton1@users.noreply.githu
b.com">jackton1@users.noreply.github.com</a> (<a
href="https://github.com/tj-actions/changed-
files/commit/cc08e170f4447237bcaf8acaacfa615b9cb86612">cc08e17</a>)  -
(tj-actions[bot])</p>
<h1><a href="https://github.com/tj-actions/changed-
files/compare/v40.2.3...v41.0.0">41.0.0</a> - (2023-12-23)</h1>
<h2><!-- raw HTML omitted -->🐛 Bug Fixes</h2>
<ul>
<li>Update safe output regex and the docs (<a
href="https://redirect.github.com/tj-actions/changed-
files/issues/1805">sagemath#1805</a>) (<a href="https://github.com/tj-
actions/changed-
files/commit/ff2f6e6b91913a7be42be1b5917330fe442f2ede">ff2f6e6</a>)  -
(tj-actions[bot])</li>
</ul>
<h2><!-- raw HTML omitted -->⏪ Reverts</h2>
<ul>
<li>Revert &quot;chore(deps): update actions/download-artifact action to
v4&quot; (<a href="https://redirect.github.com/tj-actions/changed-
files/issues/1806">sagemath#1806</a>)</li>
</ul>
<p>(<a href="https://github.com/tj-actions/changed-
files/commit/4f573fed06c9abb5da4c72f75c1c320718114ff7">4f573fe</a>)  -
(Tonye Jack)</p>
<h2><!-- raw HTML omitted -->🔄 Update</h2>
<ul>
<li>Update README.md (<a href="https://github.com/tj-actions/changed-
files/commit/6e79d6e3dbe48946636c2939c80ff5c84ff7f9fe">6e79d6e</a>)  -
(Tonye Jack)</li>
<li>Update README.md (<a href="https://github.com/tj-actions/changed-
files/commit/d13ac1942fb3c1d7d32017915bb082cebe8a272a">d13ac19</a>)  -
(Tonye Jack)</li>
<li>Update README.md (<a href="https://github.com/tj-actions/changed-
files/commit/bb89f97963be96b39e1a303e64d5b91a1af4c340">bb89f97</a>)  -
(Tonye Jack)</li>
<li>Updated README.md (<a href="https://redirect.github.com/tj-
actions/changed-files/issues/1810">sagemath#1810</a>)</li>
</ul>
<p>Co-authored-by: renovate[bot] <!-- raw HTML omitted --> (<a
href="https://github.com/tj-actions/changed-
files/commit/1864078d0afadf68ba489e671ecc09fefe8b70ab">1864078</a>)  -
(tj-actions[bot])</p>
<ul>
<li>Update README.md (<a href="https://redirect.github.com/tj-
actions/changed-files/issues/1808">sagemath#1808</a>)</li>
</ul>
<p>(<a href="https://github.com/tj-actions/changed-
files/commit/47371c50e97c089212d9eb92ca26c8453224e78e">47371c5</a>)  -
(Tonye Jack)</p>
<h2><!-- raw HTML omitted -->📝 Other</h2>
<ul>
<li>Merge pull request from GHSA-mcph-m25j-8j63</li>
</ul>
<ul>
<li>
<p>feat: add <code>safe_output</code> input enabled by default</p>
</li>
<li>
<p>fix: migrate README to safe uses of interpolation</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="tj-actions/changed-files@716b1e13
042866565e00e85fd4ec490e186c4a2f"><code>716b1e1</code></a> fix: update
characters escaped by safe output (<a
href="https://redirect.github.com/tj-actions/changed-
files/issues/1815">sagemath#1815</a>)</li>
<li><a href="tj-actions/changed-files@7aaf10d9
eef19e8a2432a967b88124171152caaf"><code>7aaf10d</code></a> chore(deps):
update dependency eslint-plugin-prettier to v5.1.2</li>
<li><a href="tj-actions/changed-files@cc08e170
f4447237bcaf8acaacfa615b9cb86612"><code>cc08e17</code></a> Upgraded to
v41 (<a href="https://redirect.github.com/tj-actions/changed-
files/issues/1811">sagemath#1811</a>)</li>
<li><a href="tj-actions/changed-files@6e79d6e3
dbe48946636c2939c80ff5c84ff7f9fe"><code>6e79d6e</code></a> Update
README.md</li>
<li><a href="tj-actions/changed-files@d13ac194
2fb3c1d7d32017915bb082cebe8a272a"><code>d13ac19</code></a> Update
README.md</li>
<li><a href="tj-actions/changed-files@bb89f979
63be96b39e1a303e64d5b91a1af4c340"><code>bb89f97</code></a> Update
README.md</li>
<li><a href="tj-actions/changed-files@1864078d
0afadf68ba489e671ecc09fefe8b70ab"><code>1864078</code></a> Updated
README.md (<a href="https://redirect.github.com/tj-actions/changed-
files/issues/1810">sagemath#1810</a>)</li>
<li><a href="tj-actions/changed-files@f495a032
1d3fffa62da2573adf70b77d5eb2f57a"><code>f495a03</code></a> chore(deps):
lock file maintenance</li>
<li><a href="tj-actions/changed-files@47371c50
e97c089212d9eb92ca26c8453224e78e"><code>47371c5</code></a> Update
README.md (<a href="https://redirect.github.com/tj-actions/changed-
files/issues/1808">sagemath#1808</a>)</li>
<li><a href="tj-actions/changed-files@4f573fed
06c9abb5da4c72f75c1c320718114ff7"><code>4f573fe</code></a> Revert
&quot;chore(deps): update actions/download-artifact action to v4&quot;
(<a href="https://redirect.github.com/tj-actions/changed-
files/issues/1806">sagemath#1806</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/tj-
actions/changed-files/compare/v38...v41">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-
badges.githubapp.com/badges/compatibility_score?dependency-name=tj-
actions/changed-files&package-manager=github_actions&previous-
version=38&new-version=41)](https://docs.github.com/en/github/managing-
security-vulnerabilities/about-dependabot-security-updates#about-
compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts page](https://github.com/sagemath/sage/network/alerts).

</details>
    
URL: sagemath#37048
Reported by: dependabot[bot]
Reviewer(s): Frédéric Chapoton
vbraun pushed a commit to vbraun/sage that referenced this issue Jan 16, 2024
….github/workflows

    
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-
files) from 38 to 41.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/tj-actions/changed-
files/releases">tj-actions/changed-files's releases</a>.</em></p>
<blockquote>
<h2>v41</h2>
<h1>Changes in v41.0.1</h1>
<h2>What's Changed</h2>
<ul>
<li>Upgraded to v41 by <a href="https://github.com/tj-actions-
bot"><code>@​tj-actions-bot</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1811">tj-actions/changed-files#1811</a></li>
<li>chore(deps): update dependency eslint-plugin-prettier to v5.1.2 by
<a href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1813">tj-actions/changed-files#1813</a></li>
<li>fix: update characters escaped by safe output by <a
href="https://github.com/jackton1"><code>@​jackton1</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1815">tj-actions/changed-files#1815</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/tj-
actions/changed-files/compare/v41...v41.0.1">https://github.com/tj-
actions/changed-files/compare/v41...v41.0.1</a></p>
<hr />
<h1>Changes in v41.0.0</h1>
<h2>🔥 🔥 BREAKING CHANGE 🔥 🔥</h2>
<p>A new <code>safe_output</code> input is now available to prevent
outputting unsafe filename characters (Enabled by default). This would
escape characters in the filename that could be used for command
injection.</p>
<blockquote>
<p>[!NOTE]
This can be disabled by setting the <code>safe_output</code> to false
this comes with a recommendation to store all outputs generated in an
environment variable first before using them.</p>
</blockquote>
<h4>Example</h4>
<pre lang="yaml"><code>...
    - name: Get changed files
      id: changed-files
      uses: tj-actions/changed-files@v40
      with:
        safe_output: false # set to false because we are using an
environment variable to store the output and avoid command injection.
<pre><code>- name: List all added files
  env:
    ADDED_FILES: ${{ steps.changed-files.outputs.added_files }}
  run: |
    for file in &amp;quot;$ADDED_FILES&amp;quot;; do
      echo &amp;quot;$file was added&amp;quot;
    done
</code></pre>
<p>...
</code></pre></p>
<h2>What's Changed</h2>
<ul>
<li>chore(deps): update typescript-eslint monorepo to v6.15.0 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1801">tj-actions/changed-files#1801</a></li>
<li>Upgraded to v40.2.3 by <a href="https://github.com/tj-actions-
bot"><code>@​tj-actions-bot</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1800">tj-actions/changed-files#1800</a></li>
<li>chore(deps): update dependency eslint-plugin-prettier to v5.1.0 by
<a href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1802">tj-actions/changed-files#1802</a></li>
<li>chore(deps): lock file maintenance by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1803">tj-actions/changed-files#1803</a></li>
<li>chore(deps): update dependency eslint-plugin-prettier to v5.1.1 by
<a href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1804">tj-actions/changed-files#1804</a></li>
<li>fix: update safe output regex and the docs by <a
href="https://github.com/tj-actions-bot"><code>@​tj-actions-
bot</code></a> in <a href="https://redirect.github.com/tj-
actions/changed-files/pull/1805">tj-actions/changed-files#1805</a></li>
<li>Revert &quot;chore(deps): update actions/download-artifact action to
v4&quot; by <a
href="https://github.com/jackton1"><code>@​jackton1</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1806">tj-actions/changed-files#1806</a></li>
<li>Update README.md by <a
href="https://github.com/jackton1"><code>@​jackton1</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1808">tj-actions/changed-files#1808</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/tj-actions/changed-
files/blob/main/HISTORY.md">tj-actions/changed-files's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h1><a href="https://github.com/tj-actions/changed-
files/compare/v41.0.0...v41.0.1">41.0.1</a> - (2023-12-24)</h1>
<h2><!-- raw HTML omitted -->🐛 Bug Fixes</h2>
<ul>
<li>Update characters escaped by safe output (<a
href="https://redirect.github.com/tj-actions/changed-
files/issues/1815">sagemath#1815</a>) (<a href="https://github.com/tj-
actions/changed-
files/commit/716b1e13042866565e00e85fd4ec490e186c4a2f">716b1e1</a>)  -
(Tonye Jack)</li>
</ul>
<h2><!-- raw HTML omitted -->⚙️ Miscellaneous Tasks</h2>
<ul>
<li><strong>deps:</strong> Update dependency eslint-plugin-prettier to
v5.1.2 (<a href="https://github.com/tj-actions/changed-
files/commit/7aaf10d9eef19e8a2432a967b88124171152caaf">7aaf10d</a>)  -
(renovate[bot])</li>
</ul>
<h2><!-- raw HTML omitted -->⬆️ Upgrades</h2>
<ul>
<li>Upgraded to v41 (<a href="https://redirect.github.com/tj-
actions/changed-files/issues/1811">sagemath#1811</a>)</li>
</ul>
<p>Co-authored-by: jackton1 <a href="mailto:jackton1@users.noreply.githu
b.com">jackton1@users.noreply.github.com</a> (<a
href="https://github.com/tj-actions/changed-
files/commit/cc08e170f4447237bcaf8acaacfa615b9cb86612">cc08e17</a>)  -
(tj-actions[bot])</p>
<h1><a href="https://github.com/tj-actions/changed-
files/compare/v40.2.3...v41.0.0">41.0.0</a> - (2023-12-23)</h1>
<h2><!-- raw HTML omitted -->🐛 Bug Fixes</h2>
<ul>
<li>Update safe output regex and the docs (<a
href="https://redirect.github.com/tj-actions/changed-
files/issues/1805">sagemath#1805</a>) (<a href="https://github.com/tj-
actions/changed-
files/commit/ff2f6e6b91913a7be42be1b5917330fe442f2ede">ff2f6e6</a>)  -
(tj-actions[bot])</li>
</ul>
<h2><!-- raw HTML omitted -->⏪ Reverts</h2>
<ul>
<li>Revert &quot;chore(deps): update actions/download-artifact action to
v4&quot; (<a href="https://redirect.github.com/tj-actions/changed-
files/issues/1806">sagemath#1806</a>)</li>
</ul>
<p>(<a href="https://github.com/tj-actions/changed-
files/commit/4f573fed06c9abb5da4c72f75c1c320718114ff7">4f573fe</a>)  -
(Tonye Jack)</p>
<h2><!-- raw HTML omitted -->🔄 Update</h2>
<ul>
<li>Update README.md (<a href="https://github.com/tj-actions/changed-
files/commit/6e79d6e3dbe48946636c2939c80ff5c84ff7f9fe">6e79d6e</a>)  -
(Tonye Jack)</li>
<li>Update README.md (<a href="https://github.com/tj-actions/changed-
files/commit/d13ac1942fb3c1d7d32017915bb082cebe8a272a">d13ac19</a>)  -
(Tonye Jack)</li>
<li>Update README.md (<a href="https://github.com/tj-actions/changed-
files/commit/bb89f97963be96b39e1a303e64d5b91a1af4c340">bb89f97</a>)  -
(Tonye Jack)</li>
<li>Updated README.md (<a href="https://redirect.github.com/tj-
actions/changed-files/issues/1810">sagemath#1810</a>)</li>
</ul>
<p>Co-authored-by: renovate[bot] <!-- raw HTML omitted --> (<a
href="https://github.com/tj-actions/changed-
files/commit/1864078d0afadf68ba489e671ecc09fefe8b70ab">1864078</a>)  -
(tj-actions[bot])</p>
<ul>
<li>Update README.md (<a href="https://redirect.github.com/tj-
actions/changed-files/issues/1808">sagemath#1808</a>)</li>
</ul>
<p>(<a href="https://github.com/tj-actions/changed-
files/commit/47371c50e97c089212d9eb92ca26c8453224e78e">47371c5</a>)  -
(Tonye Jack)</p>
<h2><!-- raw HTML omitted -->📝 Other</h2>
<ul>
<li>Merge pull request from GHSA-mcph-m25j-8j63</li>
</ul>
<ul>
<li>
<p>feat: add <code>safe_output</code> input enabled by default</p>
</li>
<li>
<p>fix: migrate README to safe uses of interpolation</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="tj-actions/changed-files@716b1e13
042866565e00e85fd4ec490e186c4a2f"><code>716b1e1</code></a> fix: update
characters escaped by safe output (<a
href="https://redirect.github.com/tj-actions/changed-
files/issues/1815">sagemath#1815</a>)</li>
<li><a href="tj-actions/changed-files@7aaf10d9
eef19e8a2432a967b88124171152caaf"><code>7aaf10d</code></a> chore(deps):
update dependency eslint-plugin-prettier to v5.1.2</li>
<li><a href="tj-actions/changed-files@cc08e170
f4447237bcaf8acaacfa615b9cb86612"><code>cc08e17</code></a> Upgraded to
v41 (<a href="https://redirect.github.com/tj-actions/changed-
files/issues/1811">sagemath#1811</a>)</li>
<li><a href="tj-actions/changed-files@6e79d6e3
dbe48946636c2939c80ff5c84ff7f9fe"><code>6e79d6e</code></a> Update
README.md</li>
<li><a href="tj-actions/changed-files@d13ac194
2fb3c1d7d32017915bb082cebe8a272a"><code>d13ac19</code></a> Update
README.md</li>
<li><a href="tj-actions/changed-files@bb89f979
63be96b39e1a303e64d5b91a1af4c340"><code>bb89f97</code></a> Update
README.md</li>
<li><a href="tj-actions/changed-files@1864078d
0afadf68ba489e671ecc09fefe8b70ab"><code>1864078</code></a> Updated
README.md (<a href="https://redirect.github.com/tj-actions/changed-
files/issues/1810">sagemath#1810</a>)</li>
<li><a href="tj-actions/changed-files@f495a032
1d3fffa62da2573adf70b77d5eb2f57a"><code>f495a03</code></a> chore(deps):
lock file maintenance</li>
<li><a href="tj-actions/changed-files@47371c50
e97c089212d9eb92ca26c8453224e78e"><code>47371c5</code></a> Update
README.md (<a href="https://redirect.github.com/tj-actions/changed-
files/issues/1808">sagemath#1808</a>)</li>
<li><a href="tj-actions/changed-files@4f573fed
06c9abb5da4c72f75c1c320718114ff7"><code>4f573fe</code></a> Revert
&quot;chore(deps): update actions/download-artifact action to v4&quot;
(<a href="https://redirect.github.com/tj-actions/changed-
files/issues/1806">sagemath#1806</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/tj-
actions/changed-files/compare/v38...v41">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-
badges.githubapp.com/badges/compatibility_score?dependency-name=tj-
actions/changed-files&package-manager=github_actions&previous-
version=38&new-version=41)](https://docs.github.com/en/github/managing-
security-vulnerabilities/about-dependabot-security-updates#about-
compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts page](https://github.com/sagemath/sage/network/alerts).

</details>
    
URL: sagemath#37048
Reported by: dependabot[bot]
Reviewer(s): Frédéric Chapoton
vbraun pushed a commit to vbraun/sage that referenced this issue Jan 21, 2024
….github/workflows

    
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-
files) from 38 to 41.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/tj-actions/changed-
files/releases">tj-actions/changed-files's releases</a>.</em></p>
<blockquote>
<h2>v41</h2>
<h1>Changes in v41.0.1</h1>
<h2>What's Changed</h2>
<ul>
<li>Upgraded to v41 by <a href="https://github.com/tj-actions-
bot"><code>@​tj-actions-bot</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1811">tj-actions/changed-files#1811</a></li>
<li>chore(deps): update dependency eslint-plugin-prettier to v5.1.2 by
<a href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1813">tj-actions/changed-files#1813</a></li>
<li>fix: update characters escaped by safe output by <a
href="https://github.com/jackton1"><code>@​jackton1</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1815">tj-actions/changed-files#1815</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/tj-
actions/changed-files/compare/v41...v41.0.1">https://github.com/tj-
actions/changed-files/compare/v41...v41.0.1</a></p>
<hr />
<h1>Changes in v41.0.0</h1>
<h2>🔥 🔥 BREAKING CHANGE 🔥 🔥</h2>
<p>A new <code>safe_output</code> input is now available to prevent
outputting unsafe filename characters (Enabled by default). This would
escape characters in the filename that could be used for command
injection.</p>
<blockquote>
<p>[!NOTE]
This can be disabled by setting the <code>safe_output</code> to false
this comes with a recommendation to store all outputs generated in an
environment variable first before using them.</p>
</blockquote>
<h4>Example</h4>
<pre lang="yaml"><code>...
    - name: Get changed files
      id: changed-files
      uses: tj-actions/changed-files@v40
      with:
        safe_output: false # set to false because we are using an
environment variable to store the output and avoid command injection.
<pre><code>- name: List all added files
  env:
    ADDED_FILES: ${{ steps.changed-files.outputs.added_files }}
  run: |
    for file in &amp;quot;$ADDED_FILES&amp;quot;; do
      echo &amp;quot;$file was added&amp;quot;
    done
</code></pre>
<p>...
</code></pre></p>
<h2>What's Changed</h2>
<ul>
<li>chore(deps): update typescript-eslint monorepo to v6.15.0 by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1801">tj-actions/changed-files#1801</a></li>
<li>Upgraded to v40.2.3 by <a href="https://github.com/tj-actions-
bot"><code>@​tj-actions-bot</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1800">tj-actions/changed-files#1800</a></li>
<li>chore(deps): update dependency eslint-plugin-prettier to v5.1.0 by
<a href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1802">tj-actions/changed-files#1802</a></li>
<li>chore(deps): lock file maintenance by <a
href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1803">tj-actions/changed-files#1803</a></li>
<li>chore(deps): update dependency eslint-plugin-prettier to v5.1.1 by
<a href="https://github.com/renovate"><code>@​renovate</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1804">tj-actions/changed-files#1804</a></li>
<li>fix: update safe output regex and the docs by <a
href="https://github.com/tj-actions-bot"><code>@​tj-actions-
bot</code></a> in <a href="https://redirect.github.com/tj-
actions/changed-files/pull/1805">tj-actions/changed-files#1805</a></li>
<li>Revert &quot;chore(deps): update actions/download-artifact action to
v4&quot; by <a
href="https://github.com/jackton1"><code>@​jackton1</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1806">tj-actions/changed-files#1806</a></li>
<li>Update README.md by <a
href="https://github.com/jackton1"><code>@​jackton1</code></a> in <a
href="https://redirect.github.com/tj-actions/changed-
files/pull/1808">tj-actions/changed-files#1808</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/tj-actions/changed-
files/blob/main/HISTORY.md">tj-actions/changed-files's
changelog</a>.</em></p>
<blockquote>
<h1>Changelog</h1>
<h1><a href="https://github.com/tj-actions/changed-
files/compare/v41.0.0...v41.0.1">41.0.1</a> - (2023-12-24)</h1>
<h2><!-- raw HTML omitted -->🐛 Bug Fixes</h2>
<ul>
<li>Update characters escaped by safe output (<a
href="https://redirect.github.com/tj-actions/changed-
files/issues/1815">sagemath#1815</a>) (<a href="https://github.com/tj-
actions/changed-
files/commit/716b1e13042866565e00e85fd4ec490e186c4a2f">716b1e1</a>)  -
(Tonye Jack)</li>
</ul>
<h2><!-- raw HTML omitted -->⚙️ Miscellaneous Tasks</h2>
<ul>
<li><strong>deps:</strong> Update dependency eslint-plugin-prettier to
v5.1.2 (<a href="https://github.com/tj-actions/changed-
files/commit/7aaf10d9eef19e8a2432a967b88124171152caaf">7aaf10d</a>)  -
(renovate[bot])</li>
</ul>
<h2><!-- raw HTML omitted -->⬆️ Upgrades</h2>
<ul>
<li>Upgraded to v41 (<a href="https://redirect.github.com/tj-
actions/changed-files/issues/1811">sagemath#1811</a>)</li>
</ul>
<p>Co-authored-by: jackton1 <a href="mailto:jackton1@users.noreply.githu
b.com">jackton1@users.noreply.github.com</a> (<a
href="https://github.com/tj-actions/changed-
files/commit/cc08e170f4447237bcaf8acaacfa615b9cb86612">cc08e17</a>)  -
(tj-actions[bot])</p>
<h1><a href="https://github.com/tj-actions/changed-
files/compare/v40.2.3...v41.0.0">41.0.0</a> - (2023-12-23)</h1>
<h2><!-- raw HTML omitted -->🐛 Bug Fixes</h2>
<ul>
<li>Update safe output regex and the docs (<a
href="https://redirect.github.com/tj-actions/changed-
files/issues/1805">sagemath#1805</a>) (<a href="https://github.com/tj-
actions/changed-
files/commit/ff2f6e6b91913a7be42be1b5917330fe442f2ede">ff2f6e6</a>)  -
(tj-actions[bot])</li>
</ul>
<h2><!-- raw HTML omitted -->⏪ Reverts</h2>
<ul>
<li>Revert &quot;chore(deps): update actions/download-artifact action to
v4&quot; (<a href="https://redirect.github.com/tj-actions/changed-
files/issues/1806">sagemath#1806</a>)</li>
</ul>
<p>(<a href="https://github.com/tj-actions/changed-
files/commit/4f573fed06c9abb5da4c72f75c1c320718114ff7">4f573fe</a>)  -
(Tonye Jack)</p>
<h2><!-- raw HTML omitted -->🔄 Update</h2>
<ul>
<li>Update README.md (<a href="https://github.com/tj-actions/changed-
files/commit/6e79d6e3dbe48946636c2939c80ff5c84ff7f9fe">6e79d6e</a>)  -
(Tonye Jack)</li>
<li>Update README.md (<a href="https://github.com/tj-actions/changed-
files/commit/d13ac1942fb3c1d7d32017915bb082cebe8a272a">d13ac19</a>)  -
(Tonye Jack)</li>
<li>Update README.md (<a href="https://github.com/tj-actions/changed-
files/commit/bb89f97963be96b39e1a303e64d5b91a1af4c340">bb89f97</a>)  -
(Tonye Jack)</li>
<li>Updated README.md (<a href="https://redirect.github.com/tj-
actions/changed-files/issues/1810">sagemath#1810</a>)</li>
</ul>
<p>Co-authored-by: renovate[bot] <!-- raw HTML omitted --> (<a
href="https://github.com/tj-actions/changed-
files/commit/1864078d0afadf68ba489e671ecc09fefe8b70ab">1864078</a>)  -
(tj-actions[bot])</p>
<ul>
<li>Update README.md (<a href="https://redirect.github.com/tj-
actions/changed-files/issues/1808">sagemath#1808</a>)</li>
</ul>
<p>(<a href="https://github.com/tj-actions/changed-
files/commit/47371c50e97c089212d9eb92ca26c8453224e78e">47371c5</a>)  -
(Tonye Jack)</p>
<h2><!-- raw HTML omitted -->📝 Other</h2>
<ul>
<li>Merge pull request from GHSA-mcph-m25j-8j63</li>
</ul>
<ul>
<li>
<p>feat: add <code>safe_output</code> input enabled by default</p>
</li>
<li>
<p>fix: migrate README to safe uses of interpolation</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="tj-actions/changed-files@716b1e13
042866565e00e85fd4ec490e186c4a2f"><code>716b1e1</code></a> fix: update
characters escaped by safe output (<a
href="https://redirect.github.com/tj-actions/changed-
files/issues/1815">sagemath#1815</a>)</li>
<li><a href="tj-actions/changed-files@7aaf10d9
eef19e8a2432a967b88124171152caaf"><code>7aaf10d</code></a> chore(deps):
update dependency eslint-plugin-prettier to v5.1.2</li>
<li><a href="tj-actions/changed-files@cc08e170
f4447237bcaf8acaacfa615b9cb86612"><code>cc08e17</code></a> Upgraded to
v41 (<a href="https://redirect.github.com/tj-actions/changed-
files/issues/1811">sagemath#1811</a>)</li>
<li><a href="tj-actions/changed-files@6e79d6e3
dbe48946636c2939c80ff5c84ff7f9fe"><code>6e79d6e</code></a> Update
README.md</li>
<li><a href="tj-actions/changed-files@d13ac194
2fb3c1d7d32017915bb082cebe8a272a"><code>d13ac19</code></a> Update
README.md</li>
<li><a href="tj-actions/changed-files@bb89f979
63be96b39e1a303e64d5b91a1af4c340"><code>bb89f97</code></a> Update
README.md</li>
<li><a href="tj-actions/changed-files@1864078d
0afadf68ba489e671ecc09fefe8b70ab"><code>1864078</code></a> Updated
README.md (<a href="https://redirect.github.com/tj-actions/changed-
files/issues/1810">sagemath#1810</a>)</li>
<li><a href="tj-actions/changed-files@f495a032
1d3fffa62da2573adf70b77d5eb2f57a"><code>f495a03</code></a> chore(deps):
lock file maintenance</li>
<li><a href="tj-actions/changed-files@47371c50
e97c089212d9eb92ca26c8453224e78e"><code>47371c5</code></a> Update
README.md (<a href="https://redirect.github.com/tj-actions/changed-
files/issues/1808">sagemath#1808</a>)</li>
<li><a href="tj-actions/changed-files@4f573fed
06c9abb5da4c72f75c1c320718114ff7"><code>4f573fe</code></a> Revert
&quot;chore(deps): update actions/download-artifact action to v4&quot;
(<a href="https://redirect.github.com/tj-actions/changed-
files/issues/1806">sagemath#1806</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/tj-
actions/changed-files/compare/v38...v41">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-
badges.githubapp.com/badges/compatibility_score?dependency-name=tj-
actions/changed-files&package-manager=github_actions&previous-
version=38&new-version=41)](https://docs.github.com/en/github/managing-
security-vulnerabilities/about-dependabot-security-updates#about-
compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts page](https://github.com/sagemath/sage/network/alerts).

</details>
    
URL: sagemath#37048
Reported by: dependabot[bot]
Reviewer(s): Frédéric Chapoton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant