Skip to content

Commit

Permalink
fix: scorecards attributes with workflows (#530)
Browse files Browse the repository at this point in the history
Relates-to: ossf/scorecard#2489

Signed-off-by: Sam Gammon <[email protected]>
  • Loading branch information
sgammon authored Dec 19, 2024
1 parent 57a082f commit 72c7534
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 7 deletions.
4 changes: 0 additions & 4 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ local.bazelrc.inert export-ignore
.aspect/bazelrc/ export-ignore
.bazelci/ export-ignore
.bcr/ export-ignore
.github/*.md export-ignore
.github/*.yml export-ignore
.github/codeql export-ignore
.github/workflows export-ignore
.husky/ export-ignore
docs/ export-ignore
tools/ export-ignore
Expand Down
32 changes: 32 additions & 0 deletions .gitattributes-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
README.md export-ignore
commitlint.config.js export-ignore
pnpm-lock.yaml export-ignore
pom.xml export-ignore
local.bazelrc.inert export-ignore
.aspect/bazelrc/ export-ignore
.bazelci/ export-ignore
.bcr/ export-ignore
.github/ export-ignore
.husky/ export-ignore
docs/ export-ignore
tools/ export-ignore
.bazelignore export-ignore
.bazelproject export-ignore
.bazelrc export-ignore
.bazelversion export-ignore
.gitignore export-ignore
.pre-commit-config.yaml export-ignore
.prettierignore export-ignore
.gitattributes export-ignore
.prettierrc export-ignore
.prettierrc.json export-ignore
go.mod export-ignore
go.sum export-ignore
Makefile export-ignore
package.json export-ignore
example/ export-ignore
version.bazelrc export-ignore
maven_install.json linguist-generated=true
internal/graalvm_bindist_map.bzl linguist-generated=true
*/MODULE.bazel.lock linguist-generated=true
MODULE.bazel.lock linguist-generated=true
8 changes: 5 additions & 3 deletions .github/workflows/deploy.docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ name: Docs
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
deployments: write

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

0 comments on commit 72c7534

Please sign in to comment.