Skip to content

Commit db745e7

Browse files
authored
chore: Set top-level permissions to read-all (#1649)
1 parent e0191f9 commit db745e7

12 files changed

Lines changed: 29 additions & 16 deletions

File tree

.github/settings.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ labels:
125125
collaborators:
126126
- username: HofmeisterAn
127127
permission: admin
128+
128129
- username: testcontainersbot
129130
permission: write
130131

@@ -175,9 +176,9 @@ branches:
175176
# Required. Require branches to be up to date before merging.
176177
strict: true
177178
# Required. The list of status checks to require in order to merge into this branch
178-
contexts: ["Test Report", "analyze (csharp)"]
179+
contexts: [ test-report ]
179180
# Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
180-
enforce_admins: false
181+
enforce_admins: true
181182
# Prevent merge commits from being pushed to matching branches
182183
required_linear_history: true
183184
# Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable.
@@ -207,9 +208,9 @@ branches:
207208
# Required. Require branches to be up to date before merging.
208209
strict: true
209210
# Required. The list of status checks to require in order to merge into this branch
210-
contexts: ["Test Report", "analyze (csharp)"]
211+
contexts: [ test-report ]
211212
# Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
212-
enforce_admins: false
213+
enforce_admins: true
213214
# Prevent merge commits from being pushed to matching branches
214215
required_linear_history: true
215216
# Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable.

.github/workflows/cicd.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,14 @@ jobs:
182182
shell: bash
183183

184184
- name: Attest
185+
if: ${{ env.PUBLISH_NUGET_PACKAGE == 'true' }}
185186
uses: actions/attest@59d89421af93a897026c735860bf21b6eb4f7b26 # v4.1.0
186187
with:
187-
subject-path: '**/*.nupkg'
188+
subject-path: artifacts/**/nuget/Testcontainers*.nupkg
188189

189190
# Cake sets the semVer environment variable.
190191
- name: Draft Release
191-
uses: release-drafter/release-drafter@6db134d15f3909ccc9eefd369f02bd1e9cffdf97 # v6.2.0
192+
uses: release-drafter/release-drafter@00ce30b0ce8a4d67bccfca59421cdf6c55dd0784 # v6.3.0
192193
with:
193194
version: ${{ env.semVer }}
194195
env:

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ concurrency:
1212
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
1313
cancel-in-progress: true
1414

15+
permissions: read-all
16+
1517
jobs:
1618
analyze:
1719
strategy:

.github/workflows/scorecard-analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ concurrency:
99
group: ${{ github.workflow }}-${{ github.head_ref || github.sha }}
1010
cancel-in-progress: true
1111

12+
permissions: read-all
13+
1214
jobs:
1315
analyze:
1416
permissions:

.github/workflows/test-report.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
types:
88
- completed
99

10+
permissions: read-all
11+
1012
jobs:
1113
test-report:
1214
permissions:

docs/contributing_docs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ We publish our documentation using Netlify.
1111

1212
### Using Python locally
1313

14-
* Ensure that you have Python 3.8.0 or higher.
14+
* Ensure that you have Python 3.11.0 or higher.
1515
* Set up a virtualenv and run `pip install -r requirements.txt` in the `testcontainers-dotnet` root directory.
1616
* Once Python dependencies have been installed, run `mkdocs serve` to start a local auto-updating MkDocs server.
1717

docs/theme/partials/header.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
class="md-header__inner md-grid"
3737
aria-label="{{ lang.t('header') }}"
3838
>
39-
39+
4040
<!-- Button to open drawer -->
4141
<label class="md-header__button md-icon" for="__drawer">
4242
{% include ".icons/material/menu" ~ ".svg" %}
@@ -124,9 +124,10 @@
124124
{% endif %}
125125

126126
<!-- Button to open search modal -->
127-
{% if "search" in config.plugins %}
127+
{% if "material/search" in config.plugins %}
128128
<label class="md-header__button md-icon" for="__search">
129-
{% include ".icons/material/magnify.svg" %}
129+
{% set icon = config.theme.icon.search or "material/magnify" %}
130+
{% include ".icons/" ~ icon ~ ".svg" %}
130131
</label>
131132

132133
<!-- Search interface -->

docs/theme/partials/nav.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
-->
1919

2020
<!-- Determine class according to configuration -->
21+
{% import "partials/nav-item.html" as item with context %}
2122
{% set class = "md-nav md-nav--primary" %}
2223
{% if "navigation.tabs" in features %}
2324
{% set class = class ~ " md-nav--lifted" %}
@@ -45,8 +46,7 @@
4546
<ul class="md-nav__list" data-md-scrollfix>
4647
{% for nav_item in nav %}
4748
{% set path = "__nav_" ~ loop.index %}
48-
{% set level = 1 %}
49-
{% include "partials/nav-item.html" %}
49+
{{ item.render(nav_item, path, 1) }}
5050
{% endfor %}
5151
<li class="community-callout-wrapper">
5252
<div class="community-callout">

docs/theme/partials/tc-header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
<rect y="22" width="30" height="4" rx="2"/>
108108
<rect y="13" width="30" height="4" rx="2"/>
109109
<rect y="4" width="30" height="4" rx="2"/>
110-
</svg>
110+
</svg>
111111
</button>
112112
</div>
113113
<nav>
@@ -134,7 +134,7 @@
134134
<use href="#icon-external"></use>
135135
</svg>
136136
{% endif %}
137-
</a>
137+
</a>
138138
</li>
139139
{% endfor %}
140140
</ul>

mkdocs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ theme:
1111
font:
1212
text: Roboto
1313
code: Roboto Mono
14+
features:
15+
- content.code.copy
1416
favicon: favicon.ico
1517
logo: logo.svg
1618
extra_css:
@@ -29,6 +31,8 @@ markdown_extensions:
2931
- pymdownx.superfences
3032
- pymdownx.tabbed:
3133
alternate_style: true
34+
- toc:
35+
permalink: true
3236
nav:
3337
- index.md
3438
- cicd/index.md

0 commit comments

Comments
 (0)