~emersion/hottub

41fb29afd3f333cb77cf3aee81bad6da1838fb8a — Simon Ser 9 months ago e4a4b57
Temporarily disable secrets

This no longer works since [1] and tokens missing the secrets
scope. sr.ht now returns an error instead of silently dropping
secrets.

[1]: https://git.sr.ht/~sircmpwn/builds.sr.ht/commit/c58ac2b2b164ef13996686cd36c864153305a750
1 files changed, 2 insertions(+), 1 deletions(-)

M main.go
M main.go => main.go +2 -1
@@ 479,7 479,8 @@ func startJob(ctx *checkSuiteContext, filename string) error {

[%v]: %v`, title, shortHash, commit.Author.GetName(), shortHash, commitURL)

	job, err := buildssrht.SubmitJob(ctx.srht.GQL, ctx, string(manifestBuf), tags, &note, ctx.ownerSubmitted, visibility)
	// TODO: use ctx.ownerSubmitted and token scope to enable secrets
	job, err := buildssrht.SubmitJob(ctx.srht.GQL, ctx, string(manifestBuf), tags, &note, false, visibility)
	if err != nil {
		return fmt.Errorf("failed to submit sr.ht job: %v", err)
	}