Skip to content

Commit

Permalink
ci: fix yamllint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ahal committed Jul 11, 2024
1 parent 675a776 commit 97cde0d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
name: deploy
on:
on: # yamllint disable-line rule:truthy
push:
branches: ["main"]
pull_request:
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
# This workflow uses actions that are not certified by GitHub. They are provided
# by a third-party and are governed by separate terms of service, privacy
# policy, and support documentation.

name: Scorecard supply-chain security
on:
on: # yamllint disable-line rule:truthy
# For Branch-Protection check. Only the default branch is supported. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
branch_protection_rule:
Expand All @@ -12,7 +13,7 @@ on:
schedule:
- cron: '19 12 * * 6'
push:
branches: [ "migration" ]
branches: ["migration"]

# Declare default permissions as read only.
permissions: read-all
Expand All @@ -32,12 +33,12 @@ jobs:

steps:
- name: "Checkout code"
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
uses: ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
with:
results_file: results.sarif
results_format: sarif
Expand All @@ -59,7 +60,7 @@ jobs:
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@97a0fba1372883ab732affbe8f94b823f91727db # v3.pre.node20
uses: actions/upload-artifact@97a0fba1372883ab732affbe8f94b823f91727db # v3.pre.node20
with:
name: SARIF file
path: results.sarif
Expand All @@ -68,6 +69,6 @@ jobs:
# Upload the results to GitHub's code scanning dashboard (optional).
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@1b1aada464948af03b950897e5eb522f92603cc2 # v3.24.9
uses: github/codeql-action/upload-sarif@1b1aada464948af03b950897e5eb522f92603cc2 # v3.24.9
with:
sarif_file: results.sarif
2 changes: 1 addition & 1 deletion .taskcluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ tasks:
source: "${repoUrl}/raw/${head_sha}/.taskcluster.yml"
- $switch:
'tasks_for in ["github-push", "github-release"] || isPullRequest':
name: "Decision Task (${tasks_for[7:]})" # strip out "github-" from tasks_for
name: "Decision Task (${tasks_for[7:]})" # strip out "github-" from tasks_for
description: 'The task that creates all of the other tasks in the task graph'
'tasks_for == "action"':
name: "Action: ${action.title}"
Expand Down

0 comments on commit 97cde0d

Please sign in to comment.