Skip to content

Commit f5ebc56

Browse files
Potential fix for code scanning alert no. 644: Shell command built from environment values (#34)
* Potential fix for code scanning alert no. 644: Shell command built from environment values Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Potential fix for code scanning alert no. 678: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Potential fix for code scanning alert no. 667: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Potential fix for code scanning alert no. 655: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Potential fix for code scanning alert no. 649: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Potential fix for code scanning alert no. 643: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Potential fix for code scanning alert no. 641: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent fb396f8 commit f5ebc56

File tree

7 files changed

+13
-1
lines changed

7 files changed

+13
-1
lines changed

.github/workflows/gosec.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# GoSec Security Checker
22
# This workflow runs gosec to check Go code for security issues
33
name: GoSec Security Checker
4+
permissions:
5+
contents: read
46

57
on:
68
push:

.github/workflows/markdownlint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Markdown Lint
22
# This workflow runs markdownlint on all Markdown files in the repository
33
name: Markdown Lint
4+
permissions:
5+
contents: read
46

57
on:
68
push:

.github/workflows/metrics.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# GitHub Metrics
22
# This workflow generates a metrics SVG and commits it to the repository
33
name: Metrics Embed
4+
permissions:
5+
contents: write
46

57
on:
68
schedule: [{cron: "0 0 * * 0"}] # every week

.github/workflows/pylint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
permissions:
2+
contents: read
13
name: Pylint
24

35
on: [push]

.github/workflows/python-docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Python Auto Documentation
22
# This workflow auto-generates documentation using Sphinx
33
name: Python Auto Documentation
4+
permissions:
5+
contents: read
46

57
on:
68
push:

.github/workflows/python-style.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Python Style Check
22
# This workflow checks Python code style using flake8
33
name: Python Style Check
4+
permissions:
5+
contents: read
46

57
on:
68
push:

build/azure-pipelines/publish-types/update-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ try {
1616

1717
const dtsUri = `https://raw.githubusercontent.com/microsoft/vscode/${tag}/src/vscode-dts/vscode.d.ts`;
1818
const outPath = path.resolve(process.cwd(), 'DefinitelyTyped/types/vscode/index.d.ts');
19-
cp.execSync(`curl ${dtsUri} --output ${outPath}`);
19+
cp.execFileSync('curl', [dtsUri, '--output', outPath]);
2020

2121
updateDTSFile(outPath, tag);
2222

0 commit comments

Comments
 (0)