Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scorecard updates #1182

Merged
merged 5 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
with:
version: v0.69.0
static: ${{ matrix.os.static }}
- run: npm install -g markdownlint-cli dprint
- run: npm install --prefix build
- name: Restore rq cache
id: cache-rq
uses: actions/cache@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/push-tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ on:
- v[0-9].**

permissions:
# this is needed to create a release
contents: write
# this is needed to create artifacts in ghcr
packages: write
contents: read

jobs:
goreleaser:
name: GoReleaser
runs-on: ubuntu-22.04
permissions:
# this is needed to create a release
contents: write
# this is needed to create artifacts in ghcr
packages: write

steps:
- name: Check out code
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/update-example-index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
schedule:
- cron: "0 1 * * *" # Run daily at 1 AM UTC

permissions:
contents: read

jobs:
update-examples-index:
env:
Expand Down
7 changes: 4 additions & 3 deletions build/do.rq
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,15 @@ e2e if {
lint if {
run("opa check --strict --capabilities build/capabilities.json bundle")
run("./regal lint --format pretty bundle")
run("markdownlint --config docs/.markdownlint.yaml --ignore docs/CODE_OF_CONDUCT.md README.md docs/")
run("npx --prefix build markdownlint --config docs/.markdownlint.yaml --ignore docs/CODE_OF_CONDUCT.md README.md docs/")
run("npx --prefix build dprint --config build/dprint.json check")
}

lint_ci if {
run("opa check --strict --capabilities build/capabilities.json bundle")
run_quiet("./regal lint --format github bundle")
run("markdownlint --config docs/.markdownlint.yaml --ignore docs/CODE_OF_CONDUCT.md README.md docs/")
run("dprint --config build/dprint.json check")
run("npx --prefix build markdownlint --config docs/.markdownlint.yaml --ignore docs/CODE_OF_CONDUCT.md README.md docs/")
run("npx --prefix build dprint --config build/dprint.json check")
}

check_readme if {
Expand Down
1 change: 1 addition & 0 deletions build/dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
},
"json": {},
"excludes": [
".lsp/**",
"**/testdata/**"
],
"plugins": [
Expand Down
Loading