Skip to content

Commit

Permalink
chown env files
Browse files Browse the repository at this point in the history
  • Loading branch information
kohlerdominik committed Feb 27, 2024
1 parent b346e3b commit 7026910
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ jobs:
uses: ./
with:
image: ubuntu:latest
run: ls -la /tmp #echo "success=true" >> $GITHUB_OUTPUT
run: |
ls -la /tmp
echo "success=true" >> $GITHUB_OUTPUT
- name: "Validate Test: Run a command in a public image"
run: test.sh equal "${{ steps.test-simple.outputs.success }}" "true"

Expand Down
3 changes: 3 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/dockerRun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ const command = fileMap.pushRunnerPath(
)

export async function runContainer(): Promise<void> {
for (const item of fileMap.items.values()) {
fs.chmodSync(item.runner.path, 0o777)
}

fs.writeFileSync(command!.runner.path, input.get('run'), {mode: 0o755})
core.info(`
Wrote instruction file to "${command!.runner.path}"
Expand Down
2 changes: 1 addition & 1 deletion tests/private-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:latest

RUN mkdir -p /var/mywork && \
echo "present" > /var/mywork/private-image-test
echo "present" > /var/mywork/private-image-test

0 comments on commit 7026910

Please sign in to comment.