File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 15
15
- uses : actions/checkout@v4
16
16
with :
17
17
ref : ${{ github.event.workflow_run.head_branch }}
18
- token : ${{ secrets.XML_SUBMODULE_PAT }} # token with repo scope; expires never
18
+ token : ${{ github.actor == 'dependabot[bot]' && secrets.REPO_AND_READ_PACKAGES_PAT || secrets.XML_SUBMODULE_PAT }}
19
+ # XML_SUBMODULE_PAT is a secret token on repository level with repo scope; expires in Jan2026
19
20
# https://github.com/Hochfrequenz/xml-fundamend-python/settings/secrets/actions/XML_AHB_MIG_Token
21
+ # REPO_AND_READ_PACKAGES_PAT is a secret token on organization level
22
+ # https://github.com/organizations/Hochfrequenz/settings/secrets/dependabot/REPO_AND_READ_PACKAGES_PAT
20
23
submodules : " recursive"
21
24
- name : Set up Python ${{ matrix.python-version }}
22
25
uses : actions/setup-python@v5
Original file line number Diff line number Diff line change 16
16
- uses : actions/checkout@v4
17
17
with :
18
18
ref : ${{ github.event.workflow_run.head_branch }}
19
- token : ${{ secrets.XML_SUBMODULE_PAT }} # token with repo scope; expires in Jan2026
19
+ token : ${{ github.actor == 'dependabot[bot]' && secrets.REPO_AND_READ_PACKAGES_PAT || secrets.XML_SUBMODULE_PAT }}
20
+ # XML_SUBMODULE_PAT is a secret token on repository level with repo scope; expires in Jan2026
20
21
# https://github.com/Hochfrequenz/xml-fundamend-python/settings/secrets/actions/XML_AHB_MIG_Token
22
+ # REPO_AND_READ_PACKAGES_PAT is a secret token on organization level
23
+ # https://github.com/organizations/Hochfrequenz/settings/secrets/dependabot/REPO_AND_READ_PACKAGES_PAT
21
24
submodules : " recursive"
22
25
- name : Set up Python ${{ matrix.python-version }}
23
26
uses : actions/setup-python@v5
You can’t perform that action at this time.
0 commit comments