Skip to content

Commit adb4ba2

Browse files
Hristo313github-advanced-security[bot]Hristo HristovCopilotLipata
authored
Potential fix for code scanning alert: Workflow does not contain permissions (#1445)
* Potential fix for code scanning alert no. 42: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * fix: add permissions when missing * fix: alert for unpinned tag for non-imutable acrion in workflow * fix: update permissions * fix: update .github/workflows/nodejs.yml Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: Hristo Hristov <[email protected]> Co-authored-by: Copilot <[email protected]> Co-authored-by: Nikolay Alipiev <[email protected]>
1 parent d802c99 commit adb4ba2

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ on:
2323
jobs:
2424
analyze:
2525
name: Analyze
26+
permissions:
27+
contents: read
28+
security-events: write
2629
runs-on: ubuntu-latest
2730

2831
strategy:

.github/workflows/nodejs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
name: Node.js CI
2+
permissions:
3+
contents: read
4+
checks: write
25

36
on:
47
push:
@@ -35,6 +38,7 @@ jobs:
3538
run: yarn coverage
3639
- name: Publish to coveralls.io
3740
if: matrix.node-version == '20.x'
38-
uses: coverallsapp/[email protected]
41+
# coverallsapp/github-action@cfd0633edbd2411b532b808ba7a8b5e04f76d2c8 corresponds to v2.3.4
42+
uses: coverallsapp/github-action@cfd0633edbd2411b532b808ba7a8b5e04f76d2c8
3943
with:
4044
github-token: ${{ github.token }}

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
release:
44
types: [created]
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
build:
811
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)