You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updates RELEASE.md to:
- Add a command to update ref for maven actions for RC releases
- Add commands for updating the ref for `generate-builder` during
adversarial verifier tests
---------
Signed-off-by: Ian Lewis <[email protected]>
find .github/workflows/ .github/actions/ actions/ -name '*.yaml' -o -name '*.yml' -type f | xargs sed -i "s/uses: slsa-framework\/slsa-github-generator\/\(.*\)@\(main\|v[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc\.[0-9]\+\)\?\)/uses: slsa-framework\/slsa-github-generator\/\1@$BUILDER_TAG/"
106
+
find actions/maven/ internal/builders/maven/ -name '*.yaml' -o -name '*.yml' -type f | xargs sed -i "s/\(ref:[ ]*\)\(main\|v[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc\.[0-9]\+\)\?\)/\1$BUILDER_TAG/"
106
107
```
107
108
108
-
Send a PR with this update and add `#label:release ${BUILDER_TAG}` in the PR description.
109
+
Send a PR with this update and add the following to the PR description.
110
+
111
+
```text
112
+
#label:release ${BUILDER_TAG}
113
+
```
109
114
110
115
Once the PR is merged, immediately update the tag to point to HEAD.
111
116
@@ -136,49 +141,84 @@ There is one integration test we cannot easily test "live", so we need to simula
136
141
```
137
142
138
143
2. Ensure your fork of the builder is at the same commit hash as the official builder's `$BUILDER_TAG` release.
139
-
3. Create a new branch `git checkout -b "$BUILDER_REF"`
140
-
4. Update the file `$BUILDER_REPOSITORY/main/.github/actions/generate-builder/action.yml` by replacing the strings `BUILDER_REPOSITORY` and `VERIFIER_REPOSITORY` with your own username (value of `$GITHUB_USERNAME`). Then push the changes.
141
-
5. For the Go builder, update the file `$BUILDER_REPOSITORY/main/.github/workflows/builder_go_slsa3.yml` to:
144
+
3. Create a new branch
145
+
146
+
```shell
147
+
git checkout -b "$BUILDER_REF"
148
+
```
149
+
150
+
4. Update the file `.github/actions/generate-builder/action.yml` by replacing the strings `BUILDER_REPOSITORY` and `VERIFIER_REPOSITORY` with your own username (value of `$GITHUB_USERNAME`). Then push the changes.
151
+
152
+
```shell
153
+
sed -i "s/BUILDER_REPOSITORY: slsa-framework\/slsa-github-generator/BUILDER_REPOSITORY: ${GITHUB_USERNAME}\/slsa-github-generator/" .github/actions/generate-builder/action.yml
154
+
sed -i "s/VERIFIER_REPOSITORY: slsa-framework\/slsa-verifier/VERIFIER_REPOSITORY: ${GITHUB_USERNAME}\/slsa-verifier/" .github/actions/generate-builder/action.yml
155
+
```
156
+
157
+
5. For the Go builder, update the file `.github/workflows/builder_go_slsa3.yml` to:
0 commit comments