Skip to content

Commit 5c1d0e8

Browse files
Updating the footer to use dynamic year variable and update scorecard workflow (#789)
* feat(footer): use dynamic year variable * ci(scorecard): add manually trigger * ci(scorecard): update upload artifact name * ci(scorecard): switch upload-artifact to v4 * ci(scorecard): switch to v4 * ci(scorecard): switch to v2.4.3 * ci(scorecard): fix pre-commit
1 parent 316e0e1 commit 5c1d0e8

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/scorecard.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ on:
1414
push:
1515
branches: ["gh-pages"]
1616

17+
workflow_dispatch:
18+
1719
# Declare default permissions as read only.
1820
permissions: read-all
1921

@@ -37,7 +39,7 @@ jobs:
3739
persist-credentials: false
3840

3941
- name: "Run analysis"
40-
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
42+
uses: ossf/scorecard-action@v2.4.3
4143
with:
4244
results_file: results.sarif
4345
results_format: sarif
@@ -59,15 +61,15 @@ jobs:
5961
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6062
# format to the repository Actions tab.
6163
- name: "Upload artifact"
62-
uses: actions/upload-artifact@97a0fba1372883ab732affbe8f94b823f91727db # v3.pre.node20
64+
uses: actions/upload-artifact@v4
6365
with:
64-
name: SARIF file
66+
name: scorecard-sarif
6567
path: results.sarif
6668
retention-days: 5
6769

6870
# Upload the results to GitHub's code scanning dashboard (optional).
6971
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
7072
- name: "Upload to code-scanning"
71-
uses: github/codeql-action/upload-sarif@v3
73+
uses: github/codeql-action/upload-sarif@v4
7274
with:
7375
sarif_file: results.sarif

_layouts/_includes/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h3>Contact Us</h3>
2828
</div>
2929
</div>
3030
<div class="footer-bottom">
31-
<small>&copy; 2025 Black Python Devs</small>
31+
<small>&copy; {{ year }} Black Python Devs</small>
3232
</div>
3333
</div>
3434
</footer>

0 commit comments

Comments
 (0)