Skip to content

Commit f018f0f

Browse files
Added workflow permissions to meet OpenSSF Scorecard requirements (#151)
Added workflow permissions to meet OpenSSF Scorecard requirements. Update github-ci.yml
1 parent 4be3996 commit f018f0f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/github-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
name: Build and Test
5+
permissions: read-all
56
on:
67
# By default this will run when the activity type is "opened", "synchronize",
78
# or "reopened".
@@ -55,6 +56,8 @@ jobs:
5556
nix-build:
5657
name: '${{ matrix.os }} ${{ matrix.build_type }} shared=${{ matrix.shared_lib }}'
5758
runs-on: '${{ matrix.os }}'
59+
permissions:
60+
contents: write # required for actions/upload-artifacts@v2
5861
defaults:
5962
run:
6063
shell: bash

0 commit comments

Comments
 (0)