You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Security/422 restrict GitHub token in workflows (#423)
* Add information to unreleased and user doc for upcoming changes which require manual effort during the migration
* Set permissions for GitHub token in workflows
With #420, any GitHub repos using the PTB for **documentation** will also need to
6
+
reconfigure the GitHub Pages settings for each repo:
7
+
1. Go to the affected repo's GitHub page
8
+
2. Select 'Settings'
9
+
3. Scroll down & select 'Pages'
10
+
4. Within the 'Build and deployment' section, change 'Source' to 'GitHub Actions'.
11
+
12
+
This should also create a 'github-pages' environment, if it does not yet exist.
13
+
For most repos using the PTB, the updating of the github pages only happens when a
14
+
PR is merged to main, so please check post-merge that it worked as expected.
15
+
16
+
With #422, we have hardened the security in our GitHub workflows by explicitly
17
+
setting permissions to the default GitHub token. In a few repos who greatly differ
18
+
from the default PTB setup, this might lead to small issues which require the allowed
19
+
permissions to be increased for specific jobs.
20
+
3
21
## ⚒️ Refactorings
4
22
5
23
*[#412](https://github.com/exasol/python-toolbox/issues/392): Refactored pre commit hook package version.py into nox task
6
24
7
25
## Security
8
26
9
-
*[#420](https://github.com/exasol/python-toolbox/issues/420): Replaced 3rd party action with GitHub actions for gh-pages
27
+
*[#420](https://github.com/exasol/python-toolbox/issues/420): Replaced 3rd party action with GitHub actions for gh-pages
28
+
*[#422](https://github.com/exasol/python-toolbox/issues/422): Set permissions within the GitHub workflows to restrict usage of the default GitHub token
0 commit comments