Skip to content

Commit b172451

Browse files
gl-johnsonGitHub Enterprise
authored andcommitted
Merge pull request #50 from Conjur-Enterprise/fix-promote
CNJR-8508: Fix git permissions for promotion
2 parents 3c3b08f + 6af1259 commit b172451

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1010
- Nothing should go in this section, please add to the latest unreleased version
1111
(and update the corresponding date), or add a new version.
1212

13-
## [1.7.28] - 2025-03-21
13+
## [1.7.28] - 2025-04-01
1414

1515
### Changed
1616
- Upgrade Go to 1.24.x
@@ -757,7 +757,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
757757
### Added
758758
- The first tagged version.
759759

760-
[Unreleased]: https://github.com/cyberark/secretless-broker/compare/v1.7.26...HEAD
760+
[Unreleased]: https://github.com/cyberark/secretless-broker/compare/v1.7.28...HEAD
761761
[0.2.0]: https://github.com/cyberark/secretless-broker/compare/v0.1.0...v0.2.0
762762
[0.3.0]: https://github.com/cyberark/secretless-broker/compare/v0.2.0...v0.3.0
763763
[0.4.0]: https://github.com/cyberark/secretless-broker/compare/v0.3.0...v0.4.0
@@ -809,3 +809,5 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
809809
[1.7.24]: https://github.com/cyberark/secretless-broker/compare/v1.7.23...v1.7.24
810810
[1.7.25]: https://github.com/cyberark/secretless-broker/compare/v1.7.24...v1.7.25
811811
[1.7.26]: https://github.com/cyberark/secretless-broker/compare/v1.7.25...v1.7.26
812+
[1.7.27]: https://github.com/cyberark/secretless-broker/compare/v1.7.26...v1.7.27
813+
[1.7.28]: https://github.com/cyberark/secretless-broker/compare/v1.7.27...v1.7.28

Jenkinsfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ if (params.MODE == "PROMOTE") {
6666
#Promote source version to target version.
6767
summon -e common ./bin/publish --promote --source ${sourceVersion} --target ${targetVersion}
6868
"""
69+
70+
// Ensure the working directory is a safe git directory for the subsequent
71+
// promotion operations after this block.
72+
sh 'git config --global --add safe.directory "$(pwd)"'
6973
}
7074

7175
// Copy Github Enterprise release to Github

bin/check_golang_security

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ else
4242
# /home/jenkins/agent/workspace/secretless-broker-main-full_main/third_party/go-mssqldb
4343
# /home/jenkins/agent/workspace/secretless-broker-main-full_main/secretless-broker-main-full_main/third_party/go-mssqldb
4444
# To accomodate the second case, we duplicate the name of the working directory to build the full path
45+
# Note this still doesn't work even though we exclude both paths.
4546
third_party_import_dir="$(pwd)/$(basename "$(pwd)")/third_party/go-mssqldb"
4647
excluded_directories="$(pwd)/test,$(pwd)/third_party/go-mssqldb,$third_party_import_dir"
4748
echo "Excluding directories: ${excluded_directories}"

bin/run_gosec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
set -eo pipefail
3+
set -exo pipefail
44

55
# This script can run independently of secretless
66
# i.e. in any given local repository

0 commit comments

Comments
 (0)