Skip to content

Commit c842704

Browse files
committed
chore(copier): apply template copier-safe-settings at v1.1.0
* deploy `safe-settings` using the test environment unless deploying from the default branch (main/master) * Note: the tool pulls the settings from the default branch always, so this is only a partial improvement in security/safety
1 parent d23a7d5 commit c842704

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.copier-answers.safe-settings.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2+
_commit: v1.1.0
3+
_src_path: https://github.com/dafyddj/copier-safe-settings

.github/workflows/safe-settings.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
permissions:
1616
contents: read
1717
runs-on: ubuntu-24.04
18+
environment: ${{ github.ref_name == github.event.repository.default_branch && 'production' || 'test' }}
1819
env:
1920
# Version/tag of `github/safe-settings` repository to use:
2021
SAFE_SETTINGS_VERSION: ff7a65655d33006b9820479df0a9e1057a8927e4 # 2.1.17

0 commit comments

Comments
 (0)