Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Merge pull request #6 from githubuniverseworkshops/decyjphr/bug-fix
Browse files Browse the repository at this point in the history
bug fixes in exercise-7
  • Loading branch information
robandpdx authored Oct 17, 2023
2 parents 3e00122 + e7c340e commit 8f7e8fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions exercises/exercise-7.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ from string file, YamlNode accesskey, Actions::Workflow workflow, Actions::Job
workflow.getFileName() = file and
with.getStep() = step and
with.lookup("aws-access-key-id") = accesskey
select step, "AWS_ACCESS_KEY_ID used as AWS credential instead of OIDC in Action '" + uses.getGitHubRepository() + "' in step '$@' in file " + filr, step, step.toString()
select step, "AWS_ACCESS_KEY_ID used as AWS credential instead of OIDC in Action '" + uses.getGitHubRepository() + "' in step '$@' in file " + file, step, step.toString()
```

8. **Run** the query and you show see the results as follows:
Expand All @@ -101,8 +101,8 @@ from string file, YamlNode accesskey, Actions::Workflow workflow, Actions::Job
10. **commit** and **push** your changes to the repository

```
queries:
- uses: ./codeql-custom-queries-javascript/incorrect-aws-credentials.ql
queries:
- uses: ./codeql-custom-queries-javascript/improper-aws-credentials.ql
```

> Add image
Expand Down

0 comments on commit 8f7e8fe

Please sign in to comment.