Skip to content

Commit 4cc2d40

Browse files
Merge pull request #29 from Extension-Developer-2/master
Adding
2 parents 8303084 + 4421162 commit 4cc2d40

4 files changed

Lines changed: 78 additions & 1 deletion

File tree

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# This workflow lets you generate SLSA provenance file for your project.
7+
# The generation satisfies level 3 for the provenance requirements - see https://slsa.dev/spec/v0.1/requirements
8+
# The project is an initiative of the OpenSSF (openssf.org) and is developed at
9+
# https://github.com/slsa-framework/slsa-github-generator.
10+
# The provenance file can be verified using https://github.com/slsa-framework/slsa-verifier.
11+
# For more information about SLSA and how it improves the supply-chain, visit slsa.dev.
12+
13+
name: SLSA generic generator
14+
on:
15+
workflow_dispatch:
16+
release:
17+
types: [created]
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
outputs:
23+
digests: ${{ steps.hash.outputs.digests }}
24+
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
# ========================================================
29+
#
30+
# Step 1: Build your artifacts.
31+
#
32+
# ========================================================
33+
- name: Build artifacts
34+
run: |
35+
# These are some amazing artifacts.
36+
echo "artifact1" > artifact1
37+
echo "artifact2" > artifact2
38+
39+
# ========================================================
40+
#
41+
# Step 2: Add a step to generate the provenance subjects
42+
# as shown below. Update the sha256 sum arguments
43+
# to include all binaries that you generate
44+
# provenance for.
45+
#
46+
# ========================================================
47+
- name: Generate subject for provenance
48+
id: hash
49+
run: |
50+
set -euo pipefail
51+
52+
# List the artifacts the provenance will refer to.
53+
files=$(ls artifact*)
54+
# Generate the subjects (base64 encoded).
55+
echo "hashes=$(sha256sum $files | base64 -w0)" >> "${GITHUB_OUTPUT}"
56+
57+
provenance:
58+
needs: [build]
59+
permissions:
60+
actions: read # To read the workflow path.
61+
id-token: write # To sign the provenance.
62+
contents: write # To add assets to a release.
63+
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.4.0
64+
with:
65+
base64-subjects: "${{ needs.build.outputs.digests }}"
66+
upload-assets: true # Optional: Upload to a new release

blocks.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
declare namespace control {
2+
//% help=github:pxt-hardware-programming-docs/docs/_onCodeStart
3+
function _onCodeStart(args: any): void;
4+
//% help=github:pxt-hardware-programming-docs/docs/_onCodeStop
5+
function _onCodeStop(args: any): void;
6+
}
7+
8+
//% help=github:pxt-hardware-programming-docs/docs/buffers
9+
declare namespace Buffer {}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pxt-hardware-docs",
3-
"version": "1.9.5",
3+
"version": "2.2.3",
44
"description": "A package for learning all low level methods, properties, performance, and more.",
55
"repository": {
66
"type": "git",

pxt.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
22
"name": "pxt-hardware-programming-docs",
33
"description": "A documentation teaching core runtime components and methods/properties.",
4+
"version": "2.2.3",
45
"license": "MIT",
56
"files": [
67
"main.ts",
8+
"blocks.d.ts",
79
"README.md",
810
"test.ts",
911
"docs/buffers.md",

0 commit comments

Comments
 (0)