-
Notifications
You must be signed in to change notification settings - Fork 0
Create vulnerable.yml #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,23 @@ | |||||||||||||||||||||||
| on: pull_request_target | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| jobs: | |||||||||||||||||||||||
| build: | |||||||||||||||||||||||
| name: Build and test | |||||||||||||||||||||||
| runs-on: ubuntu-latest | |||||||||||||||||||||||
| steps: | |||||||||||||||||||||||
| - uses: actions/checkout@v2 | |||||||||||||||||||||||
| with: | |||||||||||||||||||||||
| ref: ${{ github.event.pull_request.head.sha }} | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| - uses: actions/setup-node@v1 | |||||||||||||||||||||||
| - run: | | |||||||||||||||||||||||
| npm install | |||||||||||||||||||||||
| npm build | |||||||||||||||||||||||
| - uses: completely/fakeaction@v2 | |||||||||||||||||||||||
| with: | |||||||||||||||||||||||
| arg1: ${{ secrets.supersecret }} | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| - uses: fakerepo/comment-on-pr@v1 | |||||||||||||||||||||||
| with: | |||||||||||||||||||||||
| message: | | |||||||||||||||||||||||
| Thank you! | |||||||||||||||||||||||
|
Comment on lines
+5
to
+23
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Copilot AutofixAI 8 months ago To resolve the issue, we will add a
Suggested changeset
1
.github/workflows/vulnerable.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Refresh and try again.
|
|||||||||||||||||||||||
Check failure
Code scanning / CodeQL
Checkout of untrusted code in a privileged context Critical