fix CodeQL alerts 5-7
https://github.com/vogler/free-games-claimer/security/code-scanning/5 https://github.com/vogler/free-games-claimer/security/code-scanning/6 https://github.com/vogler/free-games-claimer/security/code-scanning/7
This commit is contained in:
parent
6aea18836d
commit
a5ce5ec816
3 changed files with 10 additions and 2 deletions
3
.github/workflows/docker.yml
vendored
3
.github/workflows/docker.yml
vendored
|
|
@ -17,6 +17,9 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- "main" # only PRs against main
|
- "main" # only PRs against main
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
7
.github/workflows/sonar.yml
vendored
7
.github/workflows/sonar.yml
vendored
|
|
@ -1,3 +1,5 @@
|
||||||
|
name: Sonar
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# Trigger analysis when pushing in main or pull requests, and when creating a pull request.
|
# Trigger analysis when pushing in main or pull requests, and when creating a pull request.
|
||||||
push:
|
push:
|
||||||
|
|
@ -5,7 +7,10 @@ on:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize, reopened]
|
types: [opened, synchronize, reopened]
|
||||||
name: Sonar
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
sonarcloud:
|
sonarcloud:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ const auth = async (url) => {
|
||||||
console.log('auth', url);
|
console.log('auth', url);
|
||||||
await page.goto(url, { waitUntil: 'domcontentloaded' });
|
await page.goto(url, { waitUntil: 'domcontentloaded' });
|
||||||
// redirects to https://login.aliexpress.com/?return_url=https%3A%2F%2Fwww.aliexpress.com%2Fp%2Fcoin-pc-index%2Findex.html
|
// redirects to https://login.aliexpress.com/?return_url=https%3A%2F%2Fwww.aliexpress.com%2Fp%2Fcoin-pc-index%2Findex.html
|
||||||
await Promise.any([page.waitForURL(/.*login.aliexpress.com.*/).then(async () => {
|
await Promise.any([page.waitForURL(/.*login\.aliexpress.com.*/).then(async () => {
|
||||||
// manual login
|
// manual login
|
||||||
console.error('Not logged in! Will wait for 120s for you to login...');
|
console.error('Not logged in! Will wait for 120s for you to login...');
|
||||||
// await page.waitForTimeout(120*1000);
|
// await page.waitForTimeout(120*1000);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue