Skip to content

Commit

Permalink
Restrict perms attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Cow-Van committed May 12, 2024
1 parent 512d266 commit 280568f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ jobs:
ENV_FILE: ${{ secrets.ENV_FILE }}
SSH_IDENTITY_FILE: ${{ secrets.SSH_IDENTITY_FILE }}
run: |
import os
import os, stat
f = open(".env", "a")
f.write(os.environ["ENV_FILE"])
f.close()
g = open("id", "a")
g.write(os.environ["SSH_IDENTITY_FILE"])
g.close()
os.chmod("id", 400)
os.chmod("id", stat.S_IRUSR)
- name: Open SSH connection to DB
run: |
${{ secrets.SSH_COMMAND }}
Expand Down

0 comments on commit 280568f

Please sign in to comment.