Skip to content

Commit 4788998

Browse files
Update permissions and unpinned tags
Signed-off-by: Venelin Bakalov <bakalovv@vmware.com>
1 parent 8c16e80 commit 4788998

File tree

6 files changed

+32
-5
lines changed

6 files changed

+32
-5
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Build
2+
23
on:
34
push:
45
branches:
@@ -9,6 +10,11 @@ on:
910
branches:
1011
- master
1112
workflow_dispatch: {}
13+
14+
permissions:
15+
actions: write
16+
contents: write
17+
1218
jobs:
1319
build:
1420
name: Node.js v${{ matrix.node-version }} on ${{ matrix.os }}
@@ -76,7 +82,7 @@ jobs:
7682
if: runner.os == 'ubuntu-latest'
7783

7884
- name: Publish code coverage report
79-
uses: codecov/codecov-action@v1
85+
uses: codecov/codecov-action@e3f7b8baf8199f0945b1a1a79d355e4f22c53e4f # v1
8086
if: runner.os == 'ubuntu-latest'
8187
with:
8288
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/draft-release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
name: Draft Release
2+
23
on:
34
workflow_dispatch:
45
push:
56
tags:
67
- "v*"
8+
9+
permissions:
10+
actions: write
11+
contents: write
12+
713
jobs:
814
build_release:
915
name: Build and Release
@@ -42,7 +48,7 @@ jobs:
4248
run: "npm pack --workspaces"
4349

4450
- name: Publish code coverage report
45-
uses: codecov/codecov-action@v1
51+
uses: codecov/codecov-action@e3f7b8baf8199f0945b1a1a79d355e4f22c53e4f # v1
4652
with:
4753
token: ${{ secrets.CODECOV_TOKEN }}
4854
file: "**/coverage/*.json"
@@ -88,7 +94,7 @@ jobs:
8894
8995
- name: Generate release notes
9096
id: generate_changelog
91-
uses: nblagoev/pull-release-notes-action@v1.0.2
97+
uses: nblagoev/pull-release-notes-action@f2ccb8e7976e86655c98d5e77b655b31b005dc05 # v1.0.2
9298
with:
9399
base-ref: ${{ env.baseRef }}
94100
head-ref: ${{ github.ref }}

.github/workflows/lint-pr.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
name: Lint Pull Request
2+
23
on:
34
pull_request:
45
branches:
56
- master
67

8+
permissions:
9+
actions: write
10+
contents: read
11+
712
jobs:
813
lint:
914
name: eslint
@@ -20,7 +25,7 @@ jobs:
2025
run: npm install -g npm@8.3.1 # lock to 8.3.1 until actions/setup-node#411 and npm/cli#4341 are fixed
2126

2227
- name: reviewdog
23-
uses: reviewdog/action-eslint@v1
28+
uses: reviewdog/action-eslint@9b5b0150e399e1f007ee3c27bc156549810a64e3 # v1.33.0
2429
with:
2530
reporter: github-pr-review
2631
eslint_flags: "packages/node/vrdt-common/src/**/*.ts packages/node/vro-language-server/src/**/*.ts extension/src/**/*.ts "

.github/workflows/publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
name: Publish Release
2+
23
on:
34
workflow_dispatch:
45
release:
56
types: [released]
7+
8+
permissions:
9+
actions: write
10+
contents: read
11+
612
jobs:
713
publish:
814
name: Publish to Visual Studio Marketplace and GitHub Packages

.github/workflows/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
# Drafts your next Release notes as Pull Requests are merged into "master"
30-
- uses: release-drafter/release-drafter@v6
30+
- uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6
3131
with:
3232
config-name: release-drafter.yml
3333
env:

.github/workflows/sync-wiki.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
paths:
77
- "wiki/**"
88

9+
permissions:
10+
actions: write
11+
contents: write
12+
913
jobs:
1014
sync:
1115
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)