Skip to content

Commit

Permalink
Explicitly set 644 permissions on ssh config files (#2231)
Browse files Browse the repository at this point in the history
* explicitly set 644 permissions on ssh config files

* bring back sros tests
  • Loading branch information
hellt authored Oct 14, 2024
1 parent d812ba1 commit 37a111e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -314,13 +314,13 @@ jobs:
with:
py_ver: ${{ needs.file-changes.outputs.py_ver }}

# sros-tests:
# uses: ./.github/workflows/sros-tests.yml
# needs:
# - file-changes
# - build-containerlab
# with:
# py_ver: ${{ needs.file-changes.outputs.py_ver }}
sros-tests:
uses: ./.github/workflows/sros-tests.yml
needs:
- file-changes
- build-containerlab
with:
py_ver: ${{ needs.file-changes.outputs.py_ver }}

fortigate-tests:
uses: ./.github/workflows/fortigate-tests.yml
Expand Down Expand Up @@ -350,7 +350,7 @@ jobs:
- ixiac-one-basic-tests
- vxlan-tests
- kind-tests
# - sros-tests
- sros-tests
- fortigate-tests
- cisco_iol-tests

Expand Down
2 changes: 1 addition & 1 deletion clab/sshconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (c *CLab) addSSHConfig() error {
return err
}

f, err := os.Create(c.TopoPaths.SSHConfigPath())
f, err := os.OpenFile(c.TopoPaths.SSHConfigPath(), os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0644)
if err != nil {
return err
}
Expand Down

0 comments on commit 37a111e

Please sign in to comment.