Skip to content

Commit

Permalink
try to fix runtime permissions to writing to temp file
Browse files Browse the repository at this point in the history
  • Loading branch information
levibostian committed Aug 31, 2024
1 parent 9dd4370 commit 04f7e01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
deno-version: v1.x

- name: Run Deno tests
run: deno test --allow-env --allow-run --junit-path reports/junit.xml
run: deno test --allow-env --allow-run --allow-write --junit-path reports/junit.xml

- name: Upload test results
uses: actions/upload-artifact@v2
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:

- name: Run deployment tool
# Deno's runtime permissions are a great feature. It would be nice to take advantage of it, however, it may not be possible with future features like running plugins.
run: deno run --allow-env=GITHUB_REF,DRY_RUN,GITHUB_REPOSITORY,INPUT_GITHUB_TOKEN,INPUT_DEPLOY_COMMANDS --allow-net="api.github.com" --allow-run https://raw.githubusercontent.com/levibostian/new-deployment-tool/${{ inputs.version }}/deploy.ts
run: deno run --allow-env=GITHUB_REF,DRY_RUN,GITHUB_REPOSITORY,INPUT_GITHUB_TOKEN,INPUT_DEPLOY_COMMANDS,TMPDIR --allow-net="api.github.com" --allow-run --allow-write="$TMPDIR" https://raw.githubusercontent.com/levibostian/new-deployment-tool/${{ inputs.version }}/deploy.ts
shell: bash
env:
INPUT_GITHUB_TOKEN: ${{ inputs.github_token }}
Expand Down

0 comments on commit 04f7e01

Please sign in to comment.