Skip to content

Commit 72c7534

Browse files
authored
fix: scorecards attributes with workflows (#530)
Relates-to: ossf/scorecard#2489 Signed-off-by: Sam Gammon <[email protected]>
1 parent 57a082f commit 72c7534

File tree

3 files changed

+37
-7
lines changed

3 files changed

+37
-7
lines changed

.gitattributes

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ local.bazelrc.inert export-ignore
66
.aspect/bazelrc/ export-ignore
77
.bazelci/ export-ignore
88
.bcr/ export-ignore
9-
.github/*.md export-ignore
10-
.github/*.yml export-ignore
11-
.github/codeql export-ignore
12-
.github/workflows export-ignore
139
.husky/ export-ignore
1410
docs/ export-ignore
1511
tools/ export-ignore

.gitattributes-release

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
README.md export-ignore
2+
commitlint.config.js export-ignore
3+
pnpm-lock.yaml export-ignore
4+
pom.xml export-ignore
5+
local.bazelrc.inert export-ignore
6+
.aspect/bazelrc/ export-ignore
7+
.bazelci/ export-ignore
8+
.bcr/ export-ignore
9+
.github/ export-ignore
10+
.husky/ export-ignore
11+
docs/ export-ignore
12+
tools/ export-ignore
13+
.bazelignore export-ignore
14+
.bazelproject export-ignore
15+
.bazelrc export-ignore
16+
.bazelversion export-ignore
17+
.gitignore export-ignore
18+
.pre-commit-config.yaml export-ignore
19+
.prettierignore export-ignore
20+
.gitattributes export-ignore
21+
.prettierrc export-ignore
22+
.prettierrc.json export-ignore
23+
go.mod export-ignore
24+
go.sum export-ignore
25+
Makefile export-ignore
26+
package.json export-ignore
27+
example/ export-ignore
28+
version.bazelrc export-ignore
29+
maven_install.json linguist-generated=true
30+
internal/graalvm_bindist_map.bzl linguist-generated=true
31+
*/MODULE.bazel.lock linguist-generated=true
32+
MODULE.bazel.lock linguist-generated=true

.github/workflows/deploy.docs.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ name: Docs
1212
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1313
permissions:
1414
contents: read
15-
pages: write
16-
id-token: write
17-
deployments: write
1815

1916
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
2017
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
@@ -27,6 +24,11 @@ jobs:
2724
name: "Build: Docs"
2825
continue-on-error: true
2926
runs-on: ubuntu-latest
27+
permissions:
28+
contents: read
29+
pages: write
30+
id-token: write
31+
deployments: write
3032
steps:
3133
- name: Harden Runner
3234
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2

0 commit comments

Comments
 (0)